Why isn't my script working?

game.ReplicatedStorage.Remotes.Functions.Shift.OnClientEvent:Connect(function()

	local hum = game.Players.LocalPlayer.Character.Humanoid
	local hs = hum.HeadScale
	local bds = hum.BodyDepthScale
	local bws = hum.BodyWidthScale
	local bhs = hum.BodyHeightScale
	hs.Value = hs.Value * 2
	bds.Value = bds.Value * 2
	bws.Value = bws.Value * 2
	bhs.Value = bhs.Value * 2
	local a= game.ReplicatedStorage.Effects.shift:Clone()
	a.Parent = game.Players.LocalPlayer.Character
	a.sfx:Play()
	a.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
	local cc = a.cc:Clone()
	cc.Parent = game.Lighting
	wait(2)
	a()
	cc:Destroy()
end)

The script should teleport a part to you and make you 2x bigger, it teleports the part and there are no errors in the console, but the player doesn’t become bigger. Any solutions?

maybe its not Firing the remote so thats why nothing is happening put, print(‘Received Remote’) above local hum

For resizing do

local hum = game.Players.LocalPlayer.Character.Humanoid:GetAppliedDescription()
local hs = hum.HeadScale
local bds = hum.BodyDepthScale
local bws = hum.BodyWidthScale
local bhs = hum.BodyHeightScale
hs.Value = hs.Value * 2
bds.Value = bds.Value * 2
bws.Value = bws.Value * 2
bhs.Value = bhs.Value * 2

game.Players.LocalPlayer.Character.Humanoid:ApplyDescription(hum)

Full code:

game.ReplicatedStorage.Remotes.Functions.Shift.OnClientEvent:Connect(function()
local hum = game.Players.LocalPlayer.Character.Humanoid:GetAppliedDescription()
local hs = hum.HeadScale
local bds = hum.BodyDepthScale
local bws = hum.BodyWidthScale
local bhs = hum.BodyHeightScale
hs.Value = hs.Value * 2
bds.Value = bds.Value * 2
bws.Value = bws.Value * 2
bhs.Value = bhs.Value * 2

game.Players.LocalPlayer.Character.Humanoid:ApplyDescription(hum)
local a= game.ReplicatedStorage.Effects.shift:Clone()
a.Parent = game.Players.LocalPlayer.Character
a.sfx:Play()
a.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
local cc = a.cc:Clone()
cc.Parent = game.Lighting
wait(2)
a()
cc:Destroy()
end)
1 Like

it does, i said that the lightning effect works.

nevermind, I forgot that i’ve changed the remote event’s name

Solution