i just want to know if i can putt this function giveTag in this other function calld seatPlrs. it doesnt seem to work idk why tho
function seatPlrs(plr:Player)
local function giveTag(plr:Player) -- can i put this here?
local owner = game.ReplicatedStorage.owner2
local oc = owner:Clone()
local hum:Humanoid = plr.Character:WaitForChild("Humanoid")
oc.Parent = plr.Character.Head
oc.TextLabel.Text = "Works"
end
giveTag(plr)
local char = plr.Character or plr.CharacterAdded:Wait()
local hum:Humanoid = char:FindFirstChildOfClass("Humanoid")
local hrp = char:WaitForChild("HumanoidRootPart")
hum:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
if hum then
for i, seat in pairs(seatStatus) do
if seat.taken == false then
seat.chair:Sit(hum)
seat.taken = true
--if seat.chair.Occupant then
-- hum.JumpHeight = 0
-- hum.JumpPower = 0
-- end
break
else
end
end
end
end
game.Players.PlayerAdded:Connect(seatPlrs)