I am making a game called Oreo Br I got the GUI done, the game logic is done (basically) but there's one problem I'm having, the OREO I have a click detector in my oreo model with a script located in my model, This script is SUPPOSED TO make your height increase but it's really not working can someone help me? here is my script for the oreo btw I haven't ever worked with body height and size so that's why this question is kind of stupid
script.Parent.ClickDetector.MouseClick:connect(PlayerSize(player.Character)) -- I don't know if this was correct to pass in
function PlayerSize(player)
local SizeValue = 1
local humanoid = player.Character.Humanoid
if humanoid then
if humanoid.FindFirstChild("BodyHeightScale") then
humanoid.BodyHeightScale.Value = humanoid.BodyHeightScale.Value + 1 --increase the body height
end
end
end

5 comments
Thank you but can you tell me what I should use instead of bodyHeightScale, and what do you mean connect, I already connected look at this line. script.Parent.ClickDetector.MouseClick:connect(PlayerSize(player.Character)) also Is player.Character the right thing to pass in?
Alright, i edited it. I hope that helped in some way.
OK thamks Ill try :)
OK thamks Ill try :)
oops sorry for postig twice this website is kinda broken :/