local C=game.Workspace.GrabSFX script.Parent.Touched:Connect(function(s)if s then C:Play()s.Parent.Humanoid.WalkSpeed=0 s.Parent.Humanoid.JumpPower=0 local p=s.Parent.Humanoid:GetPlayingAnimationTracks()for C,s in pairs(p)do s:Stop()end local A=s.Parent.Humanoid:LoadAnimation(s.Parent.StarGet)A:Play()script.Parent.Parent=game.ReplicatedStorage end end)Popup=script.Parent.TrophyGrab Ready=true function onTouch(C)local s=C.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")if s~=nil and Ready==true then Ready=false local C=game.Players:FindFirstChild(s.Parent.Name)local p=Popup:clone()p.Script.Disabled=false p.Parent=C.PlayerGui end end script.Parent.Touched:connect(onTouch)
--local Music = game.Workspace.Music
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)
