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

?Hello, new scripter that needs some help on animating and KeyDown,ect

Asked by 10 years ago

I watched numbers of videos and read most of the Wiki for scripting. However, could anyone give me any clues on how to make an animation active using Keys like "shift",q, ect ???

1 answer

Log in to vote
3
Answered by 10 years ago

The KeyDown event is actually kind of simple to use.

--LocalScript

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

mouse.KeyDown:connect(function(key)
if key == "q" then --if you want the key to be shift, it would be "if key:byte() == 48 then
--do stuff here
end
end)
0
Thanks mate but how to make a Character do a maded animation when the key is pressed? kamontae123 0 — 10y
0
Use ROBLOX's Animation plugin to make one. [Here's the wiki page for animations](http://wiki.roblox.com/index.php?title=Animations). bobafett3544 198 — 10y
Ad

Answer this question