-
What do you want to achieve? When the player dies or reset they keep their height.
-
What is the issue? I assign a random value of height to each player upon their player being added. However when the player resets, because they are given a new character and humanoid they will reset back to the normal height. How do I make it so each time a player resets/dies they keep the random value of height that was assigned specifically to them by my playeradded event when joining.
1 Like
local Players = game:GetService("Players")
local function PlayerAdded(plr)
local RandomHeight = math.random(min, max)
local function CharacterAdded(char)
--Change Height Script
end
local Character = plr.Character or plr.CharacterAdded:Wait()
CharacterAdded(Character)
plr.CharacterAdded:Connect(CharacterAdded)
end
for _, v in pairs Players:GetPlayers() do PlayerAdded(v) end
Players.PlayerAdded:Connect(PlayerAdded)
3 Likes
Thank you so much. I understand now.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.