#pls help i need it

1 messages · Page 1 of 1 (latest)

lapis shuttle
#

i need help with a script for a car nothing i search up works

sacred veldtBOT
#

studio** You are now Level 1! **studio

main pond
#

it always works

lapis shuttle
#

i have tried to do it on my on but i failed pls help

#

me

main pond
#

should i go over the basics

lapis shuttle
#

yes pls

main pond
#

ok so

#

first you'll want to insert a "seat" into workspace

lapis shuttle
#

a vehicle seat?

main pond
#

yeah

lapis shuttle
#

ok

main pond
#

just a seat will do

lapis shuttle
#

ok

main pond
#

now

#

so what are you stuck with

#

what's the error in ur code

lapis shuttle
#

it didnt have an error

main pond
#

so why isnt your script working

lapis shuttle
#

idk

main pond
#

if there isn't an error everything should be fine

#

we can't help if u don't know whats wrong

lapis shuttle
#

ok

#

i got a error this time

#

Workspace.Seat.Script:2: attempt to index nil with 'Character'

lapis shuttle
#

hold on

#

i cant send it is to big

main pond
lapis shuttle
#

what is a pastebin

main pond
lapis shuttle
#

ok

main pond
lapis shuttle
#

serverscript

sacred veldtBOT
#

studio** You are now Level 2! **studio

main pond
#

you can't get the localplayer on a serverscript

#

thus the character is nil

lapis shuttle
#

oh ok

main pond
#

because the localplayer doesn't exist on the server

#

also pretty sure there's a simpler way to do this but ok

lapis shuttle
#

yea i tend to over complicate things

main pond
lapis shuttle
#

yea

main pond
# lapis shuttle yea

no offense but every scripter I've seen barely uses capitals and naming in their scripts

#

im pretty sure u got this from toolbox

#

or from AI

lapis shuttle
#

but i just need to but in a localscript and it should worl

#

work

main pond
#

if you put this into a localscript

#

the car will only move on the client side

#

meaning it only appears to move

#

but it doesn't

#

just get the character from the player seated

lapis shuttle
#

how do i do that

main pond
#
local seat = --seat here
if seat.Occupant ~= nil then
  local character = seat.Occupant
end```
#

just put this in ur script

#

if u wrote all that urself

#

u know what to do

#

🤷

lapis shuttle
#

ok

#

wait what does the seat hear mean

main pond
lapis shuttle
#

i know but what do i put there

main pond
#

i told you to make a seat

#

bro i cant make everything for u all i can do is help u fix the code

lapis shuttle
#

i did like the name of the seat

#

i know

main pond
lapis shuttle
main pond
#

just replace --seat here with VehicleSeat