1 Like
try this;
Player.Race.Value = tostring(Race)
1 Like
Where do I put that? like in the script?
1 Like
Oh wait I see where I believe.
1 Like
That worked, but it only changed it to “nil”
1 Like
1 Like
can i see invoker script? (30 30 30 30)
1 Like
Invoker script, what’s that meant to be?
1 Like
like this;
remoteFunction:InvokeServer(params)
1 Like
I don’t really know what that is.
1 Like
can i see button script (30 30 30 30)
1 Like
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Plrs = Players:GetChildren()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Function1 = ReplicatedStorage:FindFirstChild("^&*")
local db = false
local UI = script.Parent
local Button = UI:FindFirstChild("Button")
local Main = UI:FindFirstChild("Main")
local Username = Main:FindFirstChild("Box1")
local Race = Main:FindFirstChild("Box2")
local Button_ = Main:FindFirstChild("Button")
local Label = Main:FindFirstChild("Label")
function Tween(Value)
if Value == "True" then
Main:TweenPosition(UDim2.new(0.01, 0,0.6, 0), "InOut", "Quint", .5, true)
end
if Value == "False" then
Main:TweenPosition(UDim2.new(-0.25, 0,0.6, 0), "InOut", "Quint", .5, false)
end
end
function FireEvent()
if Username.Text ~= "USERNAME" and Race.Text ~= "AMOUNT" then
for i, v in pairs(Plrs) do
if Username.Text == v.Name then
local Username = Username.Text
local Race = tonumber(Race.Text)
Function1:InvokeServer(Username, Race)
end
if Username.Text ~= v.Name then
Label.Text = "Player Not Found"
Username.Text = "USERNAME"
Race.Text = "Race"
wait(1)
Label.Text = "ADMIN GUI"
end
Username.Text = "USERNAME"
Race.Text = "Race"
end
end
end
local Value = ""
Button.Activated:Connect(function()
if db == false then
Value = "True"
Tween(Value)
db = true
elseif db == true then
Value = "False"
Tween(Value)
db = false
end
end)
Button_.Activated:Connect(FireEvent)
1 Like
Oh wait, I forgot to change one amount, cause it was gonna be leaderstats LOL
1 Like
That might of been it, I believe at’least.
1 Like
nah you can put everywhere but not wrong in code
1 Like
Oh yeah, I see, just tried, still not working xD
1 Like
i sending new code change to yourself;
local function invoker(userName, race)
local remoteFunction = yourPathToFunction
remoteFunction:InvokeServer(userName, race)
end
1 Like
Wait what script?? GUI or the other?
1 Like
GUI button script (30 30 30 30 03 0)
1 Like
Alright, can do that, I’ll see at’least.
1 Like