RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a drivable car with a sick gui. thats DRIVABLE."
-- server script local car = script.Parent local function onCarTouched(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then player.Character.HumanoidRootPart.CFrame = car.CFrame player.Character.Humanoid.PlatformStand = true local gui = Instance.new("ScreenGui") gui.Parent = player.PlayerGui local frame = Instance.new("Frame") frame.Parent = gui frame.Size = UDim2.new(0.2, 0, 0.2, 0) local button = Instance.new("TextButton") button.Parent = frame button.Size = UDim2.new(1, 0, 1, 0) button.Text = "Drive" button.MouseButton1Click:Connect(function() car.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * 20 end) end end car.Touched:Connect(onCarTouched)