I have everything I need, except coding on my side. I really need help coding this GUI. I already have a start, where you type in a person's name and it gives them it, but you don't get points. Please help me. I want the leaderstat to be called "Points". Thanks.
local playaa = game.Players.LocalPlayer
repeat wait() until playaa.Character
local open = true
local mouse = playaa:GetMouse()
function FullName(name)
for _,v in pairs(game.Players:GetPlayers()) do
if v.Name:lower():match(name:lower()) then
return v.Name
--else
-- return "Couldn't find player"
end
end
return "nothing"
end
function IsWorker()
if playaa:GetRankInGroup(2711754) > 3 then
return true
else
return false
end
end
if IsWorker() == true then
script.Parent.Frame.Visible = true
end
script.Parent.Frame.PlaceButton.MouseButton1Down:connect(function()
for _,v in pairs(playaa.Character:GetChildren()) do
if v:IsA("Tool") and FullName(script.Parent.Frame.CustomerBox.Text) ~= "nothing" then
local plr = game.Players:FindFirstChild(FullName(script.Parent.Frame.CustomerBox.Text))
if plr then
v.Parent = plr.Backpack
pcall(
function()
local guwe = Instance.new("ScreenGui", plr.PlayerGui)
local ktu = script.TextLabel:Clone()
ktu.Parent = guwe
ktu.Text = playaa.Name.." Gave You "..v.Name
Spawn(
function()
local yut = ktu
wait(6)
for i = 1, 10 do
yut.TextTransparency = yut.TextTransparency + 0.1
yut.TextStrokeTransparency = yut.TextStrokeTransparency + 0.1
wait()
end
end
)
end
)
end
end
end
end)

2 comments
What is the Leaderstat called?
it's called Points