I have a script here. Everything works except line 13. Walkspeed doesn't change. Doesn't say anything in Output. Thanks!
Teleport = game.Workspace.Teleport
Location = game.Workspace.Teleport.Position
function GiveSword(Part)
Char = Part.Parent
print(Char)
if game.Players:GetPlayerFromCharacter(Part.Parent) ~=nil then
script.Disabled = true
Player = game.Players:GetPlayerFromCharacter(Part.Parent)
Sword = game.Lighting.Sword:Clone()
Sword.Parent = Player.Backpack
Char:MoveTo(Vector3.new(Location))
Char.Humanoid.Walkspeed = 16
wait(0.25)
script.Disabled = false
end
end
script.Parent.Touched:connect(GiveSword)
