Speed coil smoke

Hi, I have a script for a speed coil but I do not want to smoke to be involved at all:

--Made by Stickmasterluke


sp = script.Parent

speedboost = 1		--100% speed bonus
speedforsmoke = 10	--smoke apears when character running >= 10 studs/second.


local tooltag = script:WaitForChild("ToolTag",2)

if tooltag~=nil then
	local tool=tooltag.Value
	local h=sp:FindFirstChild("Humanoid")
	if h~=nil then
		h.WalkSpeed=16+16*speedboost
		local hrp = sp:FindFirstChild("HumanoidRootPart")
		if hrp ~= nil then
			smokepart=Instance.new("Part")
			smokepart.FormFactor="Custom"
			smokepart.Size=Vector3.new(0,0,0)
			smokepart.TopSurface="Smooth"
			smokepart.BottomSurface="Smooth"
			smokepart.CanCollide=false
			smokepart.Transparency=1
			local weld=Instance.new("Weld")
			weld.Name="SmokePartWeld"
			weld.Part0 = hrp
			weld.Part1=smokepart
			weld.C0=CFrame.new(0,-3.5,0)*CFrame.Angles(math.pi/4,0,0)
			weld.Parent=smokepart
			smokepart.Parent=sp
			smoke=Instance.new("Smoke")
			smoke.Enabled = hrp.Velocity.magnitude>speedforsmoke
			smoke.RiseVelocity=2
			smoke.Opacity=.25
			smoke.Size=.5
			smoke.Parent=smokepart
			h.Running:connect(function(speed)
				if smoke and smoke~=nil then
					smoke.Enabled=speed>speedforsmoke
				end
			end)
		end
	end
	while tool~=nil and tool.Parent==sp and h~=nil do
		sp.ChildRemoved:wait()
	end
	local h=sp:FindFirstChild("Humanoid")
	if h~=nil then
		h.WalkSpeed=16
	end
end

if smokepart~=nil then
	smokepart:Destroy()
end
script:Destroy()

Could that happen? Thanks ^^

2 Likes

Simply, delete the parts related to Smoke

Here’s the updated script:

--Made by Stickmasterluke

local sp = script.Parent
local speedBoost = 1 -- 100% speed bonus

local toolTag = script:WaitForChild("ToolTag", 2)

if toolTag then
	local tool = toolTag.Value
	local humanoid = sp:FindFirstChildOfClass("Humanoid")

	if humanoid then
		humanoid.WalkSpeed = 16 * (1 + speedBoost)
	end

	while tool and tool.Parent == sp and humanoid do
		sp.ChildRemoved:Wait()
	end

	humanoid = sp:FindFirstChildOfClass("Humanoid")
	if humanoid then
		humanoid.WalkSpeed = 16
	end
end

script:Destroy()
2 Likes

Yes, just remove the parts of the script that deal with making the smoke part, welding it to the player, and adding smoke.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.