You can write your topic however you want, but you need to answer these questions:
-
I’m trying to make a cart ability where you can drive the cart around although i’m not sure how to make the controls work.
-
Cant figure out how to make the cart controlable with WASD. I’ve tried using ContextActionService and stuff like that but it doesn’t seem to work.
-
I’ve spent probally more than 40 minutes trying to look on the dev forum and other sources for help but none have really helped.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
This is the script for the cart currently. (Also this is from a free model from 2012 only slightly modified)
function blow()
for i = 1, 4 do
if script.Parent:FindFirstChild("Engine") ~= nil then
local ex = Instance.new("Explosion")
ex.Position = script.Parent.Parent.Engine.Position + Vector3.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
ex.BlastRadius = 1
ex.BlastPressure = 1000
ex.Parent = game.Workspace
task.wait()
end
end
task.wait(1)
script.Parent.Parent:remove()
end
script.Parent.Parent.ChildRemoved:connect(blow)
while true do
task.wait(0.1)
if script.Parent.Parent.CarOn.Value == true then
local look = script.Parent.CFrame.lookVector*script.Parent.Parent.Speed.Value
script.Parent.BV.velocity = Vector3.new(look.x, -15, look.z)
else
script.Parent.BV.velocity = Vector3.new(0, -5, 0)
end
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.