#Renting system not working
36 messages · Page 1 of 1 (latest)
he said it’s a local script
local scripts only runs when parented to the player or character
and it definitely doesn’t run in workspace
don’t know why u would use a local script to do that
** You are now Level 10! **
man does not know he can do this instead ```lua
local Bool = false
if not Bool then
print('Worked')
else
warn('Does not Exist')
end
or ```lua
if Bool then
print('Failed')
else
print('Worked')
end```
its just shorting it so u dont have to do lua if Bool == false then Bool = true end
but its ok
it does but
its just a example
use a script coz ur handling on server and its not necessary to use localacript
just change it to script
it’ll work
can u show explorer
lol u ment Output
no
he already said no prints or errors
why would i wanna see his output lol
i wanna see the explorer
not sure if this is the issue but try parenting it to a base part
otherwise u shoild create an invisible part and place it over the door then place the click detector in there
scripts dont run if they're in the workspace
if the persons name is the same as the owners lol
so get a value
and once the owner rents whatever it is
set the value to the owners name
then once someone tried to detect the player opening thhe door
chheck if their name is the same as tha value
sure do thhat
clickdetector.MouseButton1Click:connect(function(plr)
owner = plr.Name
end)```
something like that
