|
| 08 Jul 2014 04:46 PM |
| I am making a game where you build a boat and get to control it by walking on edge, but that is to boring, so I have little knowledge of scripting so I just want it to be put on any brick and it will drive it on water a boat made from basic building then you clone the seat on it and it is drivable? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Landish
|
  |
| Joined: 24 Sep 2011 |
| Total Posts: 8152 |
|
| |
|
| |
|
Landish
|
  |
| Joined: 24 Sep 2011 |
| Total Posts: 8152 |
|
| |
|
| |
|
|
| 08 Jul 2014 06:17 PM |
| I remember someone made a really awesome boat script for roblox water. It stopped working though. |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 08 Jul 2014 06:26 PM |
Seeing as you're still bumping:
(in the seats)
repeat wait() until #script.Parent:GetConnectedParts() > 0
maxSpeed = 10 turnRate = 0.5 ( full turns per second, i think, not 100% sure) dampening = 50
while wait() do
local steer = script.Parent.Steer local throttle = script.Parent.Throttle local v = script.Parent.Velocity local x,y,z = v.x,v.y,v.z local speed = Vector2.new(x,z).magnitude local speedincrease = (maxSpeed*throttle - speed) / dampening
script.Parent.Velocity = script.Parent.Velocity + script.Parent.CFrame.lookVector * speedincrease script.Parent.RotVelocity = Vector3.new(0,math.pi*turnRate*steer,0)
end
If that mess doesn't work I'll change it to use BodyInstances later, :D |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2014 06:27 PM |
This will allow you to drive the whole boat you just made nomatter what boat. In PS I made a game and you build a boat so if you put this on your boat you can drive it?
|
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 08 Jul 2014 06:36 PM |
| Theoretically...I haven't tested it |
|
|
| Report Abuse |
|
|