Output:
Players.Freddan2006YT.PlayerGui.zxcxzx.Trolling_UI.Rocket.LocalScript:14: 'end' expected (to close 'function' at line 8) near 'else'
code:
local button = script.Parent local plrname = script.Parent.Parent.Parent.Trolling_UI.PlrName.Text local rem = game.ReplicatedStorage.Admin:WaitForChild("Rocket") local status =script.Parent.Parent.Parent.Trolling_UI.status print(plrname) if workspace:FindFirstChild(plrname) then button.MouseButton1Click:Connect(function() status.Visible = true status.Text = "Sending Request.." wait(0.8) status.Visible = false status.Text = "Succsess!" else status.Visible = true status.Text = "Not a valid plr" status.Visible = false end) end
chief you got it mixed up
local button = script.Parent local plrname = script.Parent.Parent.Parent.Trolling_UI.PlrName.Text local rem = game.ReplicatedStorage.Admin:WaitForChild("Rocket") local status =script.Parent.Parent.Parent.Trolling_UI.status button.MouseButton1Click:Connect(function() if workspace:FindFirstChild(plrname) then status.Visible = true status.Text = "Sending Request.." wait(0.8) status.Visible = false status.Text = "Succsess!" else status.Visible = true status.Text = "Not a valid plr" status.Visible = false end end)