Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is wrong with my Charging script?

Asked by 9 years ago

When I went to test it out (For the 5th time), the script suddenly stopped working, and when I checked it in Play Solo it stopped working too, whats happened? Here is the script;

wait(0)
script.Parent.Text="Charge Customer"
if script.Parent:FindFirstChild("Enter")and script:FindFirstChild("Charged")and script.Parent:FindFirstChild("Paying")then
script.Parent.Enter.MouseButton1Click:connect(function()
for i,v in pairs(game.Players:GetChildren())do
if v:IsA("Player")then
if v:FindFirstChild("PlayerGui")and v.Name:lower()==script.Parent.Text:lower()then
if v.PlayerGui:FindFirstChild("ChargingPlayer")then
v.PlayerGui.ChargingPlayer:Destroy()
end
local Charging=script.Charged:Clone()
Charging.Script.Disabled=false
Charging.Text="You owe "..script.Parent.Paying.Text
Charging.Script.Needed.Value=script.Parent.Paying.Text
wait()
script.Parent.Text="Charge Customer"
script.Parent.Paying.Text="Money Here"
if v:FindFirstChild("PlayerGui")then
Charging.Parent=v.PlayerGui
end
end
end
end
end)
end

Nothing showed up in the Output, so I don't know whats happened?

Answer this question