I'm trying to make this admin thing
local command = script.Parent.Parent.TypeCmd
local playertocmd = script.Parent.Parent.TypePlr
local fire = Instance.new("Fire")
script.Parent.MouseButton1Click:connect(function()
wait(0.1)
if command.Text == "fire" then
local playertext = playertocmd.Text
fire.Parent = game.Players..playertext..CharacterAdded:wait().Head
command.Text = "Command sent!"
wait(1)
command.Text = "Command"
playertocmd = "Player"
print("command")
end
end)
Output Errors: 14:44:20.365 - Players.Player1.PlayerGui.AdminGUI.Admin.EnterCmd.LocalScript:9: attempt to index global 'CharacterAdded' (a nil value)
plez haelp

2 comments
thoinks moight
Np