Hello, i have this script that spawns a trap, but it dosent spawn in? Can someone help?
local plr = script.Parent.Parent.Parent.Parent
local mouse = plr:GetMouse()
mouse.KeyDown:connect(function(Key)
local k = Key:lower()
if k == "CTRL" then
if k == true then
local trap = game.ServerStorage.Trap:Clone()
trap.Parent = workspace
trap.Position = plr.Character.LeftFoot
plr.Character.Humanoid.Jump = true
end
end
end)
Thanks!

1 comment
it's a serverscript. that's why.