so basically after a player touches the wall it checks if they have 160 cash or more. if they do the success gui pops up, But for some reason its not popping up, theres no errors
script.Parent.Touched:connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
local player = part.Parent.name
local wallname = script.Parent.Parent.Name
if game.Players[player].leaderstats.Cash.Value >= 160 then print('yes')
local gui = script.Parent.Parent.World1GUISuccess:Clone()
gui.Parent = game.Players[player].PlayerGui
game.ReplicatedStorage.ScriptDisabler:FireClient(wallname)
else local gui = script.Parent.Parent.World1GUIFailed:Clone()
gui.Parent = game.Players[player].PlayerGui
end
end
end)
here is the script game.ReplicatedStorage.ScriptDisabler:FireClient(wallname) fires
game.ReplicatedStorage.ScriptDisabler:OnClientEvent(function(plr, wallname) print(hi)
game.Workspace.Camera.Walls[wallname].Main.Script.Disabled = true
end)
