So I have this local script inside of a textbutton http://prntscr.com/267ak51
local grow = script.Parent local player = game.Players.LocalPlayer local HS = player.Character:WaitForChild("Humanoid").HeadScale local BDS = player.Character:WaitForChild("Humanoid").BodyDepthScale local BWS = player.Character:WaitForChild("Humanoid").BodyWidthScale local BHS = player.Character:WaitForChild("Humanoid").BodyHeightScale if player.Name == "xAsheshx" then script.Parent.Parent.Parent.Enabled = true grow.MouseButton1Click:Connect(function() player.Character.Humanoid.HeadScale.Value = HS.Value * 2 player.Character.Humanoid.BodyDepthScale.Value = BDS.Value * 2 player.Character.Humanoid.BodyWidthScale.Value = BWS.Value * 2 player.Character.Humanoid.BodyHeightScale.Value = BHS.Value * 2 end) end
It seems to actually change the numbers in the values but doesn't actually change the character size
Meaning the numbers go up but the player stays the same size.
I've done a good bit of research and my script isn't very different to a lot of other's coding. I thought this was a game restriction thing but I went through game settings and saw nothing that's holding it back.
I've even tried another person's script entirely with a server script and still the same results.
Any help will be appreciated, thanks!
I figured out my own problem.
I needed to use Remote Events, the code wouldn't work in a local script.
Local Script:
local grow = script.Parent local player = game.Players.LocalPlayer if player.Name == "xAsheshx" then script.Parent.Parent.Parent.Enabled = true grow.MouseButton1Click:Connect(function() game.ReplicatedStorage.Scale:FireServer() end) end
Server Script:
game.ReplicatedStorage.Scale.OnServerEvent:Connect(function(player) local HS = player.Character:WaitForChild("Humanoid").HeadScale local BDS = player.Character:WaitForChild("Humanoid").BodyDepthScale local BWS = player.Character:WaitForChild("Humanoid").BodyWidthScale local BHS = player.Character:WaitForChild("Humanoid").BodyHeightScale HS.Value = HS.Value * 2 BDS.Value = BDS.Value * 2 BWS.Value = BWS.Value * 2 BHS.Value = BHS.Value * 2 end)
It was a pretty simple fix, silly me. Just shows not to give up researching lol.