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 » Scripters
Home Search
 

Re: Needing help

Previous Thread :: Next Thread 
922fire is not online. 922fire
Joined: 12 Nov 2011
Total Posts: 257
18 Apr 2015 02:51 PM
How can I made a no jump zone in a server?
I already have a script for no jumping at all;
but now I want to make it a certain area instead of the
entire server.
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
18 Apr 2015 02:56 PM
wiki.roblox.com
Report Abuse
922fire is not online. 922fire
Joined: 12 Nov 2011
Total Posts: 257
18 Apr 2015 03:00 PM
I don't see what I need in the tutorial.
Report Abuse
922fire is not online. 922fire
Joined: 12 Nov 2011
Total Posts: 257
18 Apr 2015 03:05 PM
Bump
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
18 Apr 2015 03:06 PM
Sometimes in life, you are not given exactly what you need.
Just the tools, then you must apply them.

Aka stop being lazy and go do it yourself.
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
18 Apr 2015 03:10 PM
local canjump = true

script.Parent.Touched:connect(function()
if canjump == true then
(Execute the no jump code here)
canjump = false
elseif canjump = false then
(Reverse the no jump code here)
canjump = true
end
end)
Report Abuse
922fire is not online. 922fire
Joined: 12 Nov 2011
Total Posts: 257
18 Apr 2015 03:36 PM
I could still jump and I am a noob scripter; not being lazy.
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
18 Apr 2015 03:39 PM
If you actually reversed the code for the second part and inserted it for the first part then it should work.
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
18 Apr 2015 03:55 PM
>Make a local script, slap this into the PlayerGui (StarterGui), or starterpack, I just love GUIs tho.

Modify the 'Area' Variable to be the position of where you don't want the player to jump, and make the Distance the distance from that position


local P = Game.Players.LocalPlayer
local C = P.Character or C.CharacterAdded:wait()
local T = C:WaitForChild('Torso')
local Area = Vector3.new(0,0,0)
local Distance = 5


while wait() do if T then if (T.Position - Area).magnitude <= Distance then end end end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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