So im trying to make a script when the player joins it will send a remote event that does somthing but it is saying this glich and I checked and idk what is happening?
line 11
local rp = game:GetService("ReplicatedStorage")
local plr = game:GetService("Players")
local re = game.ReplicatedStorage.OnJoin.Normalaxe
local rr = game.ReplicatedStorage.OnJoin.Diamondaxe
local rt = game.ReplicatedStorage.OnJoin.Lumberjackaxe
plr.PlayerAdded:Connect(function(player: Player)
local axes = player:FindFirstChild("axes") -- I'm assuming this is some folder in player
if not axes then player:Kick("Data could not load, please rejoin.") end
local normalAxe = axes:FindFirstChild("Normalaxe")
local diamondAxe = axes:FindFirstChild("Diamondaxe")
local lumberjackAxe = axes:FindFirstChild("Lumerjackaxe")
if not normalAxe then return end
print("a")
if not diamondAxe then return end
if not lumberjackAxe then return end
if normalAxe.Value == true then
re:FireClient(player)
print("a")
end
if diamondAxe.Value == true then
rr:FireClient(player)
print("100")
end
if lumberjackAxe.Value == true then
rt:FireClient(player)
end
end)