hello so i am work on bubble/ballon like inside bubble gum simulator and i am have no idea how to set the max size for the ballon inside the game here is the scripts:
1 - BallTexture)
game.Workspace.Events.BallonTexture.OnServerEvent:Connect(function(plr)
while wait(0.01) do
if plr.Hidden.BubbleTexture.Value == 0 then
script.Parent.Color = Color3.fromRGB(9,137,207)
script.Parent.Material = Enum.Material.SmoothPlastic
plr.Flover.FloverValue.Value = 0.2
end
if plr.Hidden.BubbleTexture.Value == 1 then
script.Parent.Color = Color3.fromRGB(9,137,207)
script.Parent.Material = Enum.Material.Neon
plr.Flover.FloverValue.Value = 1
end
if plr.Hidden.BubbleTexture.Value == 2 then
script.Parent.Color = Color3.fromRGB(207,137,9)
script.Parent.Material = Enum.Material.Neon
plr.Flover.FloverValue.Value = 5
end
if plr.Hidden.BubbleTexture.Value == 3 then
script.Parent.Color = Color3.fromRGB(255, 0, 191)
script.Parent.Material = Enum.Material.Neon
plr.Flover.FloverValue.Value = 15
end
if plr.Hidden.BubbleTexture.Value == 4 then
script.Parent.Color = Color3.fromRGB(0, 255, 0)
script.Parent.Material = Enum.Material.Neon
plr.Flover.FloverValue.Value = 45
end
if plr.Hidden.BubbleTexture.Value == 4 or plr.Hidden.BubbleTexture.Value >= 4 then
script.Parent.Color = Color3.fromRGB(128, 187, 219)
script.Parent.Material = Enum.Material.Granite
plr.Flover.FloverValue.Value = 98
end
end
end)
2 - SizeAndGravity)
game.Players.PlayerAdded:Connect(function()
script.Parent.Size = Vector3.new(0.05,0.05,0.05)
end)
game.Workspace.Events.BlowingBallon.OnServerEvent:Connect(function(plr)
while wait(0.01) do
script.Parent.Parent.Parent.Humanoid.JumpPower = plr.Hidden.Ballons.Value
script.Parent.Size = Vector3.new(plr.Hidden.Ballons.Value / 5,plr.Hidden.Ballons.Value / 5,plr.Hidden.Ballons.Value / 5)
script.Parent.SurfaceGui.TextLabel.Text = plr.Hidden.Ballons.Value
script.Parent.Parent.AttachmentUp = Vector3.new(0,1,0)
script.Parent.Parent.AttachmentRight = Vector3.new(1,0,0)
script.Parent.Parent.AttachmentPos = Vector3.new(0,0,0)
script.Parent.Parent.AttachmentForward = Vector3.new(0,0,-1)
if script.Parent.Parent.Parent.Humanoid.JumpPower >= 350 then
script.Parent.Parent.Parent.Humanoid.JumpPower = 350
end
end
end)
thanks for the helpers.