So in my script im having tweening problems and some other scripting problems, how do i fix some of the problems?
local player = game.Players.LocalPlayer
local CurrentExp = player:WaitForChild("leaderstats").Exp
local MaxExp = player:WaitForChild("leaderstats").ExpToLevel
local Gui = script.Parent
local Exterior = Gui:WaitForChild("BackFrame")
local label = Gui:WaitForChild("TextLabel")
local Bar = Gui:WaitForChild("Expbar")
script.Parent.TextLabel.Text = CurrentExp.Value.."/"..MaxExp.Value
CurrentExp.Changed:Connect(function()
if CurrentExp.Value >= MaxExp.Value then
Bar.Size = UDim2.new(CurrentExp.Value/MaxExp.Value,0,1,0)
wait(0.5)
CurrentExp.Value = 0
Bar.Size = UDim2.new(CurrentExp.Value/MaxExp.Value,0,1,0)
else
Bar.Size = UDim2.new(CurrentExp.Value/MaxExp.Value,0,1,0)
end
end)
Bar.Size = UDim2.new(CurrentExp.Value/MaxExp.Value,0,1,0)
First of all: you said you had tweening issues. You never even called :TweenSize() or :TweenPosition(). You never mentioned anything about tweening in the script you showed us…
I’m guessing this is in a localscript, I think the issue is that the server cannot detect if the CurrentExp value was changed, that or something else is causing it. Are you sure nothing else is increasing the value or anything that is related to the CurrentExp is messing something up?
Its because you never tell the script to change the text? You only tell it to do it once, and its outside the .Changed event. Do something like this:
script.Parent.TextLabel.Text = CurrentExp.Value.."/"..MaxExp.Value
CurrentExp.Changed:Connect(function()
script.Parent.TextLabel.Text = CurrentExp.Value.."/"..MaxExp.Value
if CurrentExp.Value >= MaxExp.Value then
Bar.Size = UDim2.new(CurrentExp.Value/MaxExp.Value,0,1,0)
wait(0.5)
CurrentExp.Value = 0
Bar.Size = UDim2.new(CurrentExp.Value/MaxExp.Value,0,1,0)
else
Bar.Size = UDim2.new(CurrentExp.Value/MaxExp.Value,0,1,0)
end
end)
A bit off topic, what is the load character plugin made by? I have load character and it never gives me a require error. Did you get a fake version of the plugin which has a backdoor?
Are you sure? This looks like a backdoor module to me, and it isn’t even uploaded by AlreadyPro. Backdoors are usually named like this, with random characters. Here was the module: