So i have been trying to make a game where you have to change body part sizes to complete an obstacle course. Here is the local script:
I know I have to use remote events and stuff but everything I have tried doesn't work.
local player = game.Players.LocalPlayer
local IQ = Instance.new("NumberValue")
IQ.Value = 100
IQ.Name = "IQ"
IQ.Parent = game.Workspace
IQ.Parent = game.Players.LocalPlayer.Character
local function OnClick()
local person = player.Character
person.Humanoid.HeadScale.Value = person.Humanoid.HeadScale.Value + 0.1000000000000000000
IQ.Value = IQ.Value + 10
if person.Humanoid.HeadScale.Value > 4 then
person.Humanoid.HeadScale.Value = 4
end
if IQ.Value > 400 then
IQ.Value = 400
end
end
script.Parent.MouseButton1Click:Connect(OnClick)

2 comments
If you have tried remote events, your trying something wrong.
Please send your remote event attempt