Here is my script right now
script.Parent.MouseClick:Connect(function(Player) local Character = Player.Character local Humanoid = Character:FindFirstChild('Humanoid') player = game:GetService("Players").LocalPlayer stats = player:findFirstChild("leaderstats") power = stats:findFirstChild("Power") power.Value = power.Value + 1
if Humanoid then
local HS = Humanoid:FindFirstChild('HeadScale')
local BDS = Humanoid:FindFirstChild('BodyDepthScale')
local BWS = Humanoid:FindFirstChild('BodyWidthScale')
local BHS = Humanoid:FindFirstChild('BodyHeightScale')
if HS and BDS and BWS and BHS then
HS.Value = HS.Value + 0.03
BDS.Value = BDS.Value + 0.015
BWS.Value = BWS.Value + 0.015
BHS.Value = BHS.Value + 0.015
local brick = script.Parent.Parent
for i = 1,2 do brick.CFrame = brick.CFrame*CFrame.new(0,-5,0) wait(15)
brick.CFrame = brick.CFrame*CFrame.new(0,5,0)
end end
end
end)
it works in studio, but it never works in-game, can someone please help me.

2 comments
LocalPlayer is nil on the server. You already have your player from MouseClick, no need for two player variables.
So, what should i do for that?