i'm trying to make an spectate script that only works on lobby so i put a script on the floor of the lobby that clone one object named inlobby to the player character but it only works in solo mode it doesn't work in the server mode and on the roblox player
here is the script (i made the if cuz when i made it without it, he cloned the object infinitely) ( im using a normal script not a local script)
script.Parent.Touched:connect(function(hit)
if game.Players.LocalPlayer.Character:FindFirstChild("inlobby")then
else
game.Lighting["inlobby"]:clone().Parent = game.Players.LocalPlayer.Character
end
end)
and i made an delete script too (when a player teleports to the match the game deletes the inlobby object) but it wont works too. (normal script too)
local inlobby = game.Players.LocalPlayer.Character.inlobby
if game.Players.LocalPlayer.Character:FindFirstChild("inlobby")then
inlobby:destroy()
else
end

1 comment
Totally jacked my accepted answer :( And I lost 1 rep xD. Anywhos, thanks for the credit tho. And its always nice to see people go indepth on answers. I kinda lazed out a bit.