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 |
|
|
| |
|
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
|
  |
| Joined: 12 Nov 2011 |
| Total Posts: 257 |
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|