Okay so what I’m trying to do is make it so the particles disappear but it’s not working heres the script: ‘’'local Userinputservice = game:GetService(“UserInputService”)
local player = game.Players.LocalPlayer
local reps = game:GetService(“ReplicatedStorage”)
local char = player.CharacterAdded:Wait()
local part = game.Workspace.Part
local Part = part.ParticleEmitter
Part.Parent = game.Workspace
print(char)
Userinputservice.InputBegan:Connect(function(input,gameProcessedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
print(Part.Parent)
local trail = Part:Clone()
local trail2 = Part:Clone()
local trail3 = Part:Clone()
local trail4 = Part:Clone()
local trail5 = Part:Clone()
local rp = char:WaitForChild("HumanoidRootPart")
local arm = char:FindFirstChild("RightHand")
local larm = char:FindFirstChild("LeftHand")
local leg = char:FindFirstChild("RightFoot")
local lleg = char:FindFirstChild("LeftFoot")
trail2.Parent = arm
trail3.Parent = larm
trail.Parent = rp
trail4.Parent = leg
trail5.Parent = lleg
local hum = char:FindFirstChild("Humanoid") if "Humanoid" then print("Found humanoid")
if hum.WalkSpeed == 100 then hum.WalkSpeed = 16 Part.Parent = game.Workspace trail2.Transparency = NumberSequence.new(1,0) or 0 trail.Transparency = NumberSequence.new(0,1) or 0 trail3.Transparency = NumberSequence.new(0,1) or 0 trail4.Transparency = NumberSequence.new(0,1) or 0 trail5.Transparency = NumberSequence.new(0,1) or 0
else trail.Transparency = NumberSequence.new(0,1) trail2.Transparency = NumberSequence.new(0,1) trail3.Transparency = NumberSequence.new(0,1) trail4.Transparency = NumberSequence.new(0,1) trail5.Transparency = NumberSequence.new(0,1)
print("Not Humanoid") hum.WalkSpeed = 100 hum.running:connect(function()
if hum.MoveDirection.Magnitude > 0 and hum.WalkSpeed == 100 then print("Player has moved") while hum.MoveDirection.Magnitude > 0 and hum.WalkSpeed == 100 do
wait(0.1)
print("Player is moving")
for i =1, 4 do
hum.CameraOffset = Vector3.new(math.random(-0.5,1),math.random(0.5,0.5), 0)
end end
end
end)
end end end
end)‘’’