generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: So how would i do this correctly?

Previous Thread :: Next Thread 
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
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
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Apr 2014 12:22 PM
Keydown, debounce, MoveTo method
Report Abuse
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
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 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Apr 2014 12:28 PM
Humanoid:MoveTo will make them "walk" there
Report Abuse
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
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
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
03 Apr 2014 12:30 PM
Just one script or will they interact with each other in seperate ones
Report Abuse
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
03 Apr 2014 12:34 PM
Bump pls

Report Abuse
vlekje513 is not online. 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 is not online. 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
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
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
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
03 Apr 2014 12:42 PM
Wubba Wubba zim
Report Abuse
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
03 Apr 2014 12:48 PM
Doooodaaq
Report Abuse
wazap is not online. 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
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
03 Apr 2014 12:57 PM
^ wat

U from LMaD ik u but I dunt talk. 2 u
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
03 Apr 2014 12:58 PM
Actually this is my main sub-forum.
Report Abuse
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
03 Apr 2014 12:59 PM
Ye but ik u from LMaD so ur LMaD'er 2 me k
Report Abuse
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
03 Apr 2014 01:10 PM
Mmmklppp
Report Abuse
LemmJuice is not online. LemmJuice
Joined: 23 Feb 2014
Total Posts: 866
03 Apr 2014 01:13 PM
Don't forgot keycodes only work with tools.
Report Abuse
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
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
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
03 Apr 2014 02:08 PM
*Dive

~ I was born in the year 1337.
Report Abuse
alphadeath is not online. alphadeath
Joined: 20 Dec 2009
Total Posts: 51059
03 Apr 2014 03:46 PM
Ah
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image