What is wrong with this script?
local player = game.Players.LocalPlayer function onTouch() if player.PlayerGui.Ready.Value == true then if player.ds.Worn1.Value == 1 then local clone = game.ServerStorage.Scripts.Clone.Animals.Test:Clone() clone.Parent = player.Character player.PlayerGui.Ready.Value = false end end end script.Parent.Touched:connect(onTouch)
function onTouch(Brick) local Player = Brick.Parent:findFirstChild("Humanoid") if Player.PlayerGui.Ready.Value == true then if Player.ds.Worn1.Value == 1 then local clone = game.ServerStorage.Scripts.Clone.Animals.Test:Clone().Parent = Player.Character Player.PlayerGui.Ready.Value = false end end end script.Parent.Touched:connect(onTouch)