#pls help i need it
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
learn to script 🙂
it always works
just keep trying
should i go over the basics
yes pls
a vehicle seat?
yeah
ok
just a seat will do
ok
it didnt have an error
so why isnt your script working
idk
if there isn't an error everything should be fine
we can't help if u don't know whats wrong
ok
i got a error this time
Workspace.Seat.Script:2: attempt to index nil with 'Character'
Show the script?
try uploading message as a file or pasting it into pastebin
what is a pastebin
a website
is this a serverscript or a localscript
serverscript
** You are now Level 2! **
then that's because your script is wrong
you can't get the localplayer on a serverscript
thus the character is nil
oh ok
because the localplayer doesn't exist on the server
also pretty sure there's a simpler way to do this but ok
yea i tend to over complicate things
u wrote all of this urself?
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
no it wont
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
how do i do that
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
🤷
there's no such thing as a seat hear
i know but what do i put there
put the seat
i told you to make a seat
bro i cant make everything for u all i can do is help u fix the code
show the script then