KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:10 PM |
im ussing .Velocity on a brick and it glitches REALLY bad.
How do I make it smooth like in tunnel cruiser by:unknownghost.
Please reply soon! |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:15 PM |
aw cmon guys, please?
Heres my code so far. Everything is defined.
while wait() do Part.CFrame = CFrame.new(Part.Position, mouse.Hit.p); Part.Velocity = Part.CFrame.lookVector * 10; end
It twirls around and glitches and goes crazy |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:23 PM |
use a BodyVelocity instead of changing the Part's Velocity.
local bv = Instance.new('BodyVelocity', Part) bv.maxForce = Vector3.new(1,1,1)/0 bv.velocity = Vector3.new()
while wait() do Part.CFrame = CFrame.new(Part.Position, mouse.Hit.p) -- Adding this will make the Part continuously update it's Direction toward the mouse bv.velocity = Part.CFrame.lookVector * 10 end |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:23 PM |
| ok ill se how it works, Thanks. |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:23 PM |
| Or CFrame it without velocity on renderstepped, in a small increment. |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:25 PM |
local script
local Part = workspace.Part
game:GetService("RunService").RenderStepped:connect(function() Part.CFrame = Part.CFrame*CFrame.new(0,0,-1) game:GetService("RunService").RenderStepped:wait() end) |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:26 PM |
still goes absurdly glitchy, and cant go forward, only side to side SUPER fast and glitchy.
plz more help.
just like tunnel cruiser tyvm |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:26 PM |
Fixed version*
local Part = workspace.Part
game:GetService("RunService").RenderStepped:connect(function() Part.CFrame = Part.CFrame*CFrame.new(0,0,-0.25) game:GetService("RunService").RenderStepped:wait() end) |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:27 PM |
| Could you implement lookvector and mouse.Hit.p in it? |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:28 PM |
sry, but what does this mean
game:GetService("RunService").RenderStepped:wait()
I am non faimiliar with renderstepped and runservice |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:28 PM |
local Part = workspace.Part
game:GetService("RunService").RenderStepped:connect(function() Part.CFrame = Part.CFrame*CFrame.new(0,0,-0.25) game:GetService("RunService").RenderStepped:wait() end)
Sorry, I dont have your code. P\ost it and ill fix it though. |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:28 PM |
| RenderStepped wait() is shorter than wait(), which makes it smoother. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:29 PM |
| the codes at the top, buddy |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:32 PM |
Dont be rude, your lucky i just helped you
try this
game:getService("RunService").RenderStepped:connect(function() Part.CFrame = CFrame.new(Part.Position,mouse.Hit.p) Part.Velocity = Part.CFrame.lookVector*10 game:GetService("RunService").RenderStepped:wait() end) |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:32 PM |
being a buddy is rude?
sry. :( |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:33 PM |
No it just sounded rude
What if I said this, because you didnt see the code:
Code's at the top, buddy.
It sounds rude, even if you dont mean it.
Sorry if i took it the wrong way. But choose words carefully. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:35 PM |
i meant it like, friendly. Like i owe you one.
sry :( |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:36 PM |
Oh
Sorry
but is the code working? Btw its a localscript. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:37 PM |
OH
Its not the ships fault.
ITS MY FAULT!
LITERALLY!
Once i sit on the welded seat, it glitches. I think it makes sense.
know how to fix it, Fellow scripter? :) |
|
|
| Report Abuse |
|
|
|
| 26 May 2015 06:38 PM |
| Give me the model. Ill whip something up. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:40 PM |
| http://www.roblox.com/For-Um-I-forgot-your-name-but-I-think-it-is-chicke-item?id=252561760 |
|
|
| Report Abuse |
|
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 May 2015 06:42 PM |
| http://www.roblox.com/TheNewChicken-item?id=252561760 |
|
|
| Report Abuse |
|
|