opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 04 Apr 2009 11:57 AM |
please please please help me im realy ANYOYED WITH MY CAR when i start it it dosent move but vibrates a bit and it dosent steer eather but when i stop it and get out of it i can push it along whats happend!!please say something helpfull
<(opplo)> |
|
|
| Report Abuse |
|
|
tovtov
|
  |
| Joined: 05 Feb 2008 |
| Total Posts: 7450 |
|
|
| 04 Apr 2009 12:17 PM |
| look in the 3 model a working car and comper |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 04 Apr 2009 12:35 PM |
| yeh but i want to make my own from scratch |
|
|
| Report Abuse |
|
|
tovtov
|
  |
| Joined: 05 Feb 2008 |
| Total Posts: 7450 |
|
|
| 04 Apr 2009 12:39 PM |
| make it from screatch but use the free model as a teacher |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 04 Apr 2009 01:16 PM |
| yeh but i mean i have made it it moves vibrates it just wont go fawards or steer i did change the wheel size if make its differnt |
|
|
| Report Abuse |
|
|
Kisaru
|
  |
| Joined: 09 Jul 2008 |
| Total Posts: 6378 |
|
|
| 04 Apr 2009 01:32 PM |
| Maybe you need to up the power level in your car tool. Most car tools I have seen have something like this "Power = 10" or so and if it won't move maybe you need to make that number higher. If it doesn't work after that I don't know what to do. |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 04 Apr 2009 01:52 PM |
where is the power on the script??
bin=script.Parent car=nil hold=false local debounce = false local cardebounce = false local stuntdebounce = false local controlling = false
function computeDirection(vec) local lenSquared = vec.magnitude * vec.magnitude local invSqrt = 1 / math.sqrt(lenSquared) return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) end
function move(target, engine) local origincframe = engine:findFirstChild("BodyGyro").cframe local dir = (target - engine.Position).unit local spawnPos = engine.Position
local pos = spawnPos + (dir * 1)
engine:findFirstChild("BodyGyro").maxTorque = Vector3.new(9000, 9000, 9000) engine:findFirstChild("BodyGyro").cframe = CFrame.new(pos, pos + dir) wait(0.1) engine:findFirstChild("BodyGyro").maxTorque = Vector3.new(0, 0, 0) engine:findFirstChild("BodyGyro").cframe = origincframe end
function findCar(player) local list = player.Character:GetChildren() for x = 1, #list do if (list[x].Name == "Car") then local weld = list[x]:FindFirstChild("Parts"):FindFirstChild("Seat"):FindFirstChild("SeatWeld") if (weld ~= nil) and (weld.Part1 == player.Character:FindFirstChild("Torso")) then return list[x] end end end return nil end
function onButton1Down(mouse) local vehicle = findCar(script.Parent.Parent.Parent) if vehicle ~= nil and debounce == false and cardebounce == false then debounce = true
controlling = true
while true do wait() local engine = vehicle.Parts.Engine local position = mouse.Hit local target = position.p if engine ~= nil then move(target, engine) end if cardebounce == true or controlling == false then break end end wait(.1) debounce = false end end
function onButton1Up(mouse) controlling = false end
function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) mouse.Button1Up:connect(function() onButton1Up(mouse) end) mouse.KeyDown:connect(onKeyDown) end
function onKeyDown(key) if (key~=nil) then key = key:lower() local vehicle = findCar(script.Parent.Parent.Parent) if (vehicle==nil) then return end car = vehicle.Parts local engine = vehicle.Parts.Engine local r1 = engine.Parent.RightWheel1 local r2 = engine.Parent.RightWheel2 local l1 = engine.Parent.LeftWheel1 local l2 = engine.Parent.LeftWheel2 if (key=="x") and cardebounce == false then r1.LeftParamB= 0 r2.LeftParamB= 0 l1.RightParamB= 0 l2.RightParamB= 0 end if (key=="y") then r1.LeftParamB= -1 r2.LeftParamB= -1 l1.RightParamB= 1 l2.RightParamB= 1 end end end
bin.Selected:connect(onSelected) |
|
|
| Report Abuse |
|
|