|
| 16 May 2017 01:50 PM |
| Brick = script.Parent function OnTouch() local player = game.Players.LocalPlayer local torso = player.Character.HumanoidRootPart for i=1,10, .01 do wait(1) Brick.CFrame = Brick.CFrame + Vector3.new(0, i, 0) torso.CFrame = torso.CFrame + ################## break end end Brick.Touched:connect(OnTouch) That Is My Script It Is Suppost To Take "Brick" And move it up y+10 but it only moves it up y+0.1 |
|
|
| Report Abuse |
|
|
|
| 16 May 2017 01:50 PM |
| Brick = script.Parent function OnTouch() local player = game.Players.LocalPlayer local torso = player.Character.HumanoidRootPart for i=1,10, .01 do wait(1) Brick.CFrame = Brick.CFrame + Vector3.new(0, i, 0) torso.CFrame = torso.CFrame + ################## break end end Brick.Touched:connect(OnTouch) |
|
|
| Report Abuse |
|
|
Goadan
|
  |
| Joined: 14 Apr 2013 |
| Total Posts: 157 |
|
|
| 16 May 2017 01:52 PM |
So explain what its suppose to do , People cant look at a chunk of text like that with no line breaks and understand what it does,
|
|
|
| Report Abuse |
|
|
|
| 16 May 2017 01:52 PM |
| Wait Ima try and post it again in proper format: Brick = script.Parent function OnTouch() local player = game.Players.LocalPlayer local torso = player.Character.HumanoidRootPart for i=1,10, .01 do wait(1) Brick.CFrame = Brick.CFrame + Vector3.new(0, i, 0) torso.CFrame = torso.CFrame + ################## break end end Brick.Touched:connect(OnTouch) |
|
|
| Report Abuse |
|
|
|
| 16 May 2017 01:53 PM |
| Let me try now: Brick = script.Parent function OnTouch() local player = game.Players.LocalPlayer local torso = player.Character.HumanoidRootPart for i=1,10, .01 do wait(1) Brick.CFrame = Brick.CFrame + Vector3.new(0, i, 0) torso.CFrame = torso.CFrame + ################## break end end Brick.Touched:connect(OnTouch) |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2017 01:56 PM |
| ######################## I took a screen shot of it |
|
|
| Report Abuse |
|
|
edenDeden
|
  |
| Joined: 29 Jul 2016 |
| Total Posts: 370 |
|
|
| 16 May 2017 01:59 PM |
is this a script or a local script?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2017 02:05 PM |
| I'ma try posting the code 1 more time Brick = script.Parent function OnTouch() local player = game.Players.LocalPlayer local torso = player.Character.HumanoidRootPart for i=1,10, .01 do wait(1) Brick.CFrame = Brick.CFrame + Vector3.new(0, i, 0) torso.CFrame = torso.CFrame + ################## break end end Brick.Touched:connect(OnTouch) -- |
|
|
| Report Abuse |
|
|
| |
|
RogueMage
|
  |
| Joined: 28 Jan 2012 |
| Total Posts: 1235 |
|
|
| 16 May 2017 02:06 PM |
It's not formatting cause of the censor
Make a goo.gl link |
|
|
| Report Abuse |
|
|
|
| 16 May 2017 02:06 PM |
| ##################### here is a screen shot of the code |
|
|
| Report Abuse |
|
|
RogueMage
|
  |
| Joined: 28 Jan 2012 |
| Total Posts: 1235 |
|
|
| 16 May 2017 02:07 PM |
Bruh just make a google link...
Remove the https://
|
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2017 02:22 PM |
1. game.Players.LocalPlayer only works correctly when used in LocalScripts. This should produce an error in the output window, which you should have open when testing your scripts.
Get the player with game.Players:GetPlayerFromCharacter(part.Parent) with part being the object triggering the event.
2. If you put a break in your for loop outside of a conditional check there is no point having the loop. The break keyword ends the loop. |
|
|
| Report Abuse |
|
|
RogueMage
|
  |
| Joined: 28 Jan 2012 |
| Total Posts: 1235 |
|
|
| 16 May 2017 02:23 PM |
Your loop goes like this:
1 1.01 1.02 1.03 1.04 1.05
That's what it's doing
I can't really say how to FIX it because I have no idea what you're doing
Use multiplication or something, idk |
|
|
| Report Abuse |
|
|