To base it on Leaderstats follow these steps:
Step 1: Put a LocalScript into the ScreenGui
Step 2: Type the following into the LocalScript
local Player = game.Players.LocalPlayer
local Stat = Player.LeaderStats.Stat
local Frame = Player.PlayerGui.ScreenGui.Frame
local LevelUp = Stat.Value + 1
while wait() do
if Stat ~= nil then
if Stat.Value == LevelUp then
Frame.Visible = true
wait(5)
Frame:TweenSize(UDim2.new(0,0,0,0), "Out", "Quint", 3)
Frame.Visible = false
LevelUp.Value = LevelUp.Value + 1
end
end
end
To base it on Leaderstats follow these steps:
Step 1: Put a LocalScript into the ScreenGui
Step 2: Type the following into the LocalScript
script.Parent.Touched:connect(function(Hit)
if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
local LS = script.LocalScript:Clone()
local Player = Hit.Parent:GetPlayerFromCharacter
LS.Parent = Player.PlayerGui.ScreenGui
LS.Disabled = false
end
end)
1 comment
didnt work unfortunately