|
| 03 Apr 2014 12:19 PM |
I have a press key (I.e key = "g") for action script
How would I make it so that it moves your character for you instead of you being able to move yourself
Basically I'm trying to make a wall run with a football |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2014 12:21 PM |
| I'd also need it unlooped so people don't just abuse it to make easy touchdowns |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Apr 2014 12:22 PM |
| Keydown, debounce, MoveTo method |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2014 12:25 PM |
So would they walk there or teleport?
Sounds kinda stupid but I'm new 2 dis |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 03 Apr 2014 12:27 PM |
| Then start low, don't start at animations with keydown events running with magnitude clickevents, if statements and debounces. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Apr 2014 12:28 PM |
| Humanoid:MoveTo will make them "walk" there |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2014 12:29 PM |
Also, would I just put all of it in a script?
Like
while wait(0.2) do if keys["f"] then print "Firing my laser!" elseif keys["z"] and keys["x"] then print "Using the super-awesome two-key attack" end end
Workspace.Player.Humanoid:MoveTo(Workspace.Part .Position, Workspace.Part) local buttonPressed = false --Store whether the button is pressed in a local variable
Workspace.Button.Touched:connect(function(hit) if not buttonPressed then -- Is it not pressed?
buttonPressed = true -- Mark it as pressed, so that other handlers don't execute
print("Button pressed") wait(1) print("Hi :D") -- Do Stuff
buttonPressed = false
Copied from wiki just 4 quick reference |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2014 12:30 PM |
| Just one script or will they interact with each other in seperate ones |
|
|
| Report Abuse |
|
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 03 Apr 2014 12:36 PM |
| Start low, don't start at animations with keydown events running with magnitude clickevents, if statements and debounces. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 03 Apr 2014 12:37 PM |
Nevermind, I thought you wanted to make a tackle tool... Just disable ControlService. while using MoveTo(VECTOR3) |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2014 12:39 PM |
K
But if I were to add an animation how would I do so?
Because it would seem kinda weird to just "glide" on the wall lol |
|
|
| Report Abuse |
|
|
| |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 03 Apr 2014 12:55 PM |
| I'd help you but you flame me too much. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2014 12:57 PM |
^ wat
U from LMaD ik u but I dunt talk. 2 u |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 03 Apr 2014 12:58 PM |
| Actually this is my main sub-forum. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2014 12:59 PM |
| Ye but ik u from LMaD so ur LMaD'er 2 me k |
|
|
| Report Abuse |
|
|
| |
|
LemmJuice
|
  |
| Joined: 23 Feb 2014 |
| Total Posts: 866 |
|
|
| 03 Apr 2014 01:13 PM |
| Don't forgot keycodes only work with tools. |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2014 01:15 PM |
Aw
But I'm using the base from BJJ's game and you can press E to divew w/ a tool |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2014 02:08 PM |
*Dive
~ I was born in the year 1337. |
|
|
| Report Abuse |
|
|
| |
|