Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i bypass the wait time on functions?

function createShell()
		local Shell = Instance.new("Part")
		Shell.Position = Handle.Mag.Position + Vector3.new(0,0,0)
		Shell.Orientation = Handle.Orientation
		Shell.Size = Vector3.new(0.07,0.15,0.07)
		Shell.Color = Color3.fromRGB(245, 205, 48)
		Shell.Parent = game.Workspace
		Shell.Name = "Shell"
	
		wait(5)
	
		Shell:Destroy()
end
while true do
	wait(0.15)
	if IsShooting == true and Clip > 0 then
		Shoot:FireServer(IsShooting)		
		createShell()		
	end
end

ok so i tried to make a automatic smg but when i fire the gun, it waits 5 seconds to delete the shell then the gun fires.

how do i bypass the cleaning time ?

1 comment

0

Please mark answer as accepted if it helps

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.