Hello,
So i’ve been making a script that can also give the player some errors like; “You can’t buy more of this item”. The thing is that I need the PlayerGui to have that error to appear. I tried to do that but I failed.
Here’s the script;
local tv = game.Workspace:WaitForChild("OldTvClone")
local package = game.Workspace:WaitForChild("OldTvPackage")
if tv and package then
local oldtvtOOmuch = game.Workspace:WaitForChild("OldTvClone")
oldtvtOOmuch:Destroy()
local player = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
player.ErrorGui.ErrorLabel.TweenScript.Disabled = false
wait(10)
script.Disabled = true
wait(3)
script.Disabled = false
script.Disabled = true
else
warn("warning")
end
Do I need to have it like this so it wont affect anything?
local tv = game.Workspace:WaitForChild("OldTvClone")
local package = game.Workspace:WaitForChild("OldTvPackage")
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
print(3)
end)
if tv and package then
local oldtvtOOmuch = game.Workspace:WaitForChild("OldTvClone")
oldtvtOOmuch:Destroy()
local player = game.Players.LocalPlayer:WaitForChild("PlayerGui")
player.ErrorGui.ErrorLabel.TweenScript.Disabled = false
wait(10)
script.Disabled = true
wait(3)
script.Disabled = false
script.Disabled = true
else
warn("!!WARNING!!")
end
No, there’s no way I can use a localscript for that cause this script runs in a other script and thats server sided too. So idk how I can make that happen.