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)

3 comments
It seems as if one of the if statements is not firing so the code will not occur
Is this a localscript?
It is not a local script, though I tried with local script but still didn't work