i just need some help its a regular script, not a local or module script
local event = game.ReplicatedStorage:WaitForChild("flashsteps")
local event2 = game.ReplicatedStorage:WaitForChild("flashstepsOFF")
local rs = game.ReplicatedStorage
local flashstepping = false
print("init successful")
game.Players.PlayerAdded:Connect(function(plr)
print("player added")
plr.CharacterAdded:Connect(function(character)
local sound = Instance.new("Sound")
local humanoid = character:WaitForChild("Humanoid")
local hrp = character:WaitForChild("HumanoidRootPart")
sound.SoundId = "rbxassetid://18564431123"
sound.Parent = hrp
sound.RollOffMaxDistance = 75
sound.RollOffMinDistance = 10
print("character added")
local aura = Instance.new("Highlight")
aura.Parent = character
aura.Name = ("aura")
aura.Enabled = true
aura.FillColor = Color3.new(0, 0, 0)
aura.FillTransparency = 1
aura.OutlineColor = Color3.new(0, 0, 0)
aura.OutlineTransparency = 0
aura.DepthMode = ("Occluded")
print("flash step init")
event.OnServerEvent:Connect(function(player)
print("Event fired")
flashstepping = true
sound:Play()
aura.FillTransparency = 0
aura.OutlineTransparency = 1
end)
event2.OnServerEvent:Connect(function(player)
flashstepping = false
sound:Stop()
aura.FillTransparency = 1
aura.OutlineTransparency = 0
print("Flashstep destroyed")
end)
end)
end)