|
| 05 Jun 2015 10:16 PM |
| How do you make a script where when you walk forward you cant stalk or you'll die? |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 10:19 PM |
| You need to be more specific on when the person should die because someone "stalking" someone else is very vague. |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 05 Jun 2015 10:22 PM |
if you shoot a ray from your face that only has a limited range
you can make a counter if the ray is hitting someone else's body
and if the counter hits 0 you are declared a stalker
and you die |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 10:24 PM |
Bleh
sorry guys
*How do you make a script where when you walk forward you cant walk slow down or stop or you'll die? |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 10:28 PM |
Also how do I make this happen only once
Part = script.Parent
function onTouched(hit)
local s = Instance.new("Sound")
s.Name = "Music" s.SoundId = "rbxassetid://167689675" s.Volume = 1 s.Looped = true s.archivable = false
s.Parent = game.Workspace wait(0)
s:play() end
connection = Part.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 10:42 PM |
CanTouch=true Part.Touched:connect(function() if CanTouch then CanTouch=false local s = Instance.new("Sound",workspace) s.Name = "Music" s.SoundId = "rbxassetid://167689675" s.Volume = 1 s.Looped = true s.archivable = false s:Play() end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Jun 2015 10:56 PM |
function applyWalk(player)
player.Character.Humanoid.Running:connect(function() player.Character:BreakJoints() end)
end
|
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 11:08 PM |
Doesn't work
where do i put it? |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Jun 2015 11:26 PM |
*Insert link to the beginners guide to scripting* |
|
|
| Report Abuse |
|
|
| |
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 05 Jun 2015 11:31 PM |
No you aren't.
You are worse than* a beginner. |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 11:34 PM |
i need help
;_;
how do u make a scrrrrrrrrrrript like i want |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 05 Jun 2015 11:35 PM |
| This isn't how to start scripting, if you don't know the basics yet, that's a great place to start. |
|
|
| Report Abuse |
|
|
Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
|
| 05 Jun 2015 11:37 PM |
| http://wiki.roblox.com/index.php?title=Your_First_Script |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 11:38 PM |
| i read that b4 and that did not help at all |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 05 Jun 2015 11:39 PM |
if u do this
print("Hello")
it says Hello in the output
if u do this
local x = "Hello"
print(x)
it says Hello in the output
however usually the output isn't this friendly |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 11:40 PM |
local x = "Hi, how are you"
print(x) --> "Hey wants up? Wanna do sum kinky stuff? You got nice eyebrows.... mmm..."
|
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
| |
|
| |
|
| |
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
| |
|
|
| 06 Jun 2015 12:12 AM |
local player = game.Players.LocalPlayer local movefunc = player.Move
game:GetService("RunService").RenderStepped:connect(function() movefunc(player, Vector3.new(0, 0, -1), true) end) |
|
|
| Report Abuse |
|
|