Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why wont this script work?

Asked by 9 years ago

Im a noob at scripting so i wanted to test a script that makes me invisible and gives me speed but it dosnt seem to work. this is what im using. v

local Player = script.Parent.Parent mouse = Player:GetMouse()

function onKeyDown(key) key = key:lower() if key == "x" then game:GetService("Chat"):Chat(Player.Character.Head, "Vanishing Drive") script.Disabled = true Player.Character.Humanoid.WalkSpeed = 100 game.Workspace.Player.Transperancy = 1 wait(0.4) game.Workspace.Player.Transperancy = 0 Player.Character.Humanoid.WalkSpeed = 16 script.Disabled = false end end mouse.KeyDown:connect(onKeyDown)

1
Put it in a scripting block, please. HungryJaffer 1246 — 9y

Answer this question