#highlight is highlighting everyone

1 messages · Page 1 of 1 (latest)

golden stone
#

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)
#

btw i gave everyone an outline cus it looks cool, that might be the problem

quasi zealot
# golden stone btw i gave everyone an outline cus it looks cool, that might be the problem

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)

handle these remotes outside that function and use that player parameter to find the character then aura

marble cave
golden stone
marble cave
golden stone
#

make the dude who presses the button to turn black

#

p much whats in the video

#

but for 1 guy

marble cave
#

so in serverevent

#

it has the info of the player who sent it

#

take the player
get the character of that player

#

find the aura child of the chacter and change that one

golden stone
#

aight

marble cave
#

i can write code if need but its best if u do so you can learn

golden stone
#

yeah i got it