local O=game.Workspace.GrabSFX script.Parent.Touched:Connect(function(K)if K then O:Play()K.Parent.Humanoid.WalkSpeed=0 K.Parent.Humanoid.JumpPower=0 local a=K.Parent.Humanoid:GetPlayingAnimationTracks()for O,K in pairs(a)do K:Stop()end local R=K.Parent.Humanoid:LoadAnimation(K.Parent.StarGet)R:Play()script.Parent.Parent=game.ReplicatedStorage end end)Popup=script.Parent.TrophyGrab Ready=true function onTouch(O)local K=O.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if K~=nil and Ready==true then Ready=false local O=game.Players:FindFirstChild(K.Parent.Name)local a=Popup:clone()a.Script.Disabled=false a.Parent=O.PlayerGui end end script.Parent.Touched:connect(onTouch)

local GrabSFX = game.Workspace.GrabSFX

script.Parent.Touched:Connect(function(hit)
	if hit then
		--Music.Volume = 0
		GrabSFX:Play()
		--hit.Parent.PlayerScript.Disabled = true
		hit.Parent.Humanoid.WalkSpeed = 0
		hit.Parent.Humanoid.JumpPower = 0
		local AnimationTracks = hit.Parent.Humanoid:GetPlayingAnimationTracks()
		for i, track in pairs (AnimationTracks) do
			track:Stop()
		end
		local StarAnim = hit.Parent.Humanoid:LoadAnimation(hit.Parent.StarGet)
		StarAnim:Play()
		script.Parent.Parent = game.ReplicatedStorage
	end
end)

Popup = script.Parent.TrophyGrab
Ready = true
function onTouch(hit)
	local h = hit.Parent:FindFirstChild("Humanoid")
	if h ~= nil and Ready == true then
		Ready = false
		local plyr = game.Players:FindFirstChild(h.Parent.Name) 
		local c = Popup:clone()
		c.Script.Disabled = false
		c.Parent = plyr.PlayerGui
	end
end

script.Parent.Touched:connect(onTouch)
