When I hold click, the op-op room size increases but I want it to increase fast, then step by step slower then it ends. How do I do that? Script:
`local replicatedStorage = game:GetService("ReplicatedStorage")
local remoteEventStorage = replicatedStorage:WaitForChild("RemoteEventStorage")
local fruitEvents = remoteEventStorage:WaitForChild("FruitEvents")
local roomFolder = fruitEvents:WaitForChild("Room")
local roomEvent = roomFolder:WaitForChild("Room")
local stopEvent = roomFolder:WaitForChild("Finish")
local modelStorage = replicatedStorage:WaitForChild("ModelStorage")
local attackFolder = modelStorage:WaitForChild("Room")
local attackModel = attackFolder:WaitForChild("Room")
local stopped = false
local t = 0
stopEvent.OnServerEvent:connect(function()
stopped = true
print(stopped)
wait(t)
t = 0
stopped = false
print(stopped)
end)
roomEvent.OnServerEvent:connect(function(player)
local character = player.Character or player.CharacterAdded:wait()
local newModel = attackModel:Clone()
newModel.Parent = character
newModel.Room.Position = character.UpperTorso.Position + Vector3.new(0,-9,0)
newModel.Room.Block.Position = character.UpperTorso.Position + Vector3.new(0,-2,0)
newModel.Room.Block.Script.Disabled = false
for i = 6,95 do
local z = i - 6
if stopped==false then
newModel.Room.Size = newModel.Room.Size + Vector3.new(0.2,0.19,0.2)
newModel.Room.Block.Size = newModel.Room.Block.Size + Vector3.new(0.195,0.010,0.195)
wait(.01)
end
if stopped==true then
t = z+t
end
print(z)
end
game.Debris:AddItem(newModel,10)
end)
`
