Shrink & Grow Player

Local Script

local frame = script.Parent


local grow = frame.Grow

local normal = frame.Normal

local shrink = frame.Shrink


local grow_val = 2

local normal_val = 1

local shrink_val = 0.5


local player = game.Players.LocalPlayer


grow.MouseButton1Click:Connect(function()

player.Character.Humanoid.HeadScale.Value = grow_val

player.Character.Humanoid.BodyDepthScale.Value = grow_val

player.Character.Humanoid.BodyWidthScale.Value = grow_val

player.Character.Humanoid.BodyHeightScale.Value = grow_val

player.Character.Humanoid.WalkSpeed = 5

game.Workspace.CurrentCamera.FieldOfView = 100

end)


normal.MouseButton1Click:Connect(function()

player.Character.Humanoid.HeadScale.Value = normal_val

player.Character.Humanoid.BodyDepthScale.Value = normal_val

player.Character.Humanoid.BodyWidthScale.Value = normal_val

player.Character.Humanoid.BodyHeightScale.Value = normal_val

player.Character.Humanoid.WalkSpeed = 16

player.Character.Humanoid.JumpPower = 50

game.Workspace.CurrentCamera.FieldOfView = 70

end)


shrink.MouseButton1Click:Connect(function()

player.Character.Humanoid.HeadScale.Value = shrink_val

player.Character.Humanoid.BodyDepthScale.Value = shrink_val

player.Character.Humanoid.BodyWidthScale.Value = shrink_val

player.Character.Humanoid.BodyHeightScale.Value = shrink_val

player.Character.Humanoid.WalkSpeed = 50

player.Character.Humanoid.JumpPower = 100

game.Workspace.CurrentCamera.FieldOfView = 25

end)

Server Change

Add RemoteEvent to ReplicatedStorage and rename it to SizeEvent

LocalScript

local frame = script.Parent


local grow = frame.Grow

local normal = frame.Normal

local shrink = frame.Shrink


local grow_val = 2

local normal_val = 1

local shrink_val = 0.5


local player = game.Players.LocalPlayer


local rs = game:GetService('ReplicatedStorage')

local sizeEvent = rs:WaitForChild('SizeEvent')


grow.MouseButton1Click:Connect(function()

sizeEvent:FireServer(grow_val)

player.Character.Humanoid.WalkSpeed = 5

game.Workspace.CurrentCamera.FieldOfView = 100

end)


normal.MouseButton1Click:Connect(function()

sizeEvent:FireServer(normal_val)


player.Character.Humanoid.WalkSpeed = 16

player.Character.Humanoid.JumpPower = 50

game.Workspace.CurrentCamera.FieldOfView = 70

end)


shrink.MouseButton1Click:Connect(function()

sizeEvent:FireServer(shrink_val)

player.Character.Humanoid.WalkSpeed = 50

player.Character.Humanoid.JumpPower = 100

game.Workspace.CurrentCamera.FieldOfView = 25

end)

ServerScriptService

local rs = game:GetService('ReplicatedStorage')

local sizeEvent = rs:WaitForChild('SizeEvent')


sizeEvent.OnServerEvent:Connect(function(plr, size)

plr.Character.Humanoid.HeadScale.Value = size

plr.Character.Humanoid.BodyDepthScale.Value = size

plr.Character.Humanoid.BodyWidthScale.Value = size

plr.Character.Humanoid.BodyHeightScale.Value = size

end)