I need a script to make it so when the player rejoins the game, they are reset back to their size from the play session before, like the BodyWidthScale would be 8 when they leave, and when they come back, their BodyWidthScale is set to 8 Here's the script that lets them player increase in size (inside a tool, LocalScript)

local TimesClicked = 0
tool = script.Parent
local player = game.Players.LocalPlayer
local RS = game.ReplicatedStorage

debounce = false

tool.Activated:connect(function(Player)
	if debounce == false then
		debounce = true
		local Character = game.Players.LocalPlayer.Character
		local Humanoid = script.Parent.Parent:FindFirstChild('Humanoid')
		 
		if Humanoid then
		 local BDS = Humanoid:FindFirstChild('BodyDepthScale')
		 local BWS = Humanoid:FindFirstChild('BodyWidthScale')
		 local HS = Humanoid:FindFirstChild('HeadScale')
		 local BHS = Humanoid:FindFirstChild('BodyHeightScale')
		  
		if player.leaderstats.Calories.Value > 0 then
		  BDS.Value = 1
		  BWS.Value = 1
		  HS.Value = 1
		  BHS.Value = 1
		end
		  
		 if BDS and BWS and HS and BHS then
			local bleh = player.leaderstats.Strength.Value - player.leaderstats.Strength.Value + 0.01
		  BDS.Value = BDS.Value + bleh
		  BWS.Value = BWS.Value + bleh
		  HS.Value = HS.Value + bleh
		  BHS.Value = BHS.Value + bleh
		
		  TimesClicked = TimesClicked + 1
		print("DBGrowth")
		wait(2)
		debounce = false
		end
   
   end
  end
 end)

6 comments

0

Use Data store....

0

how would i write it though

0

idk where did you get your other knowledge

0

if your talking about the making player bigger, i got it from my self, i had to play around for like 2 days because im a beginner

0

k ill check it out, i swear people just love dislikining my stuff, or whatever it's called