#Renting system not working

36 messages · Page 1 of 1 (latest)

snow perch
#

lol what do u mean bout this

fleet urchin
#

use a script

snow perch
#

lol its a script

fleet urchin
#

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

tribal skyBOT
#

studio** You are now Level 10! **studio

snow perch
#

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

fleet urchin
#

it does but

snow perch
#

its just a example

fleet urchin
#

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

snow perch
fleet urchin
#

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

snow perch
#

scripts dont run if they're in the workspace

supple heath
#

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