#Trail is too short

1 messages · Page 1 of 1 (latest)

fleet owl
#

So what I'm making is a dash, this is how it works:

Clients performs a dash and does effects (including trail) on a client, and then Fires a remote event. The server script gets all players except the player that performed the dash and fires remote event back to this local script with info of who should see it (any player except the performer) and the performer, so the spectators client will know who is performing and will have the trail effect. It works, but there is 1 problem - The trail is not that long as it should be

#

on the left client, the trail is normal, the client-spectator (right) has very short trail and its hard too see

feral vigil
#

is it a trail instance

fleet owl
#

Maybe its something with the trail settings, heres the code

    local parts = {
        DashPerformerCharacter:WaitForChild("Right Arm"),
        DashPerformerCharacter:WaitForChild("Left Arm"),
        DashPerformerCharacter:WaitForChild("Right Leg"),
        DashPerformerCharacter:WaitForChild("Left Leg"),
        DashPerformerCharacter:WaitForChild("Torso")
    }

    for _, Part in pairs(parts) do
        local A0 = Instance.new("Attachment")
        if Part == DashPerformerCharacter.Torso then
            A0.Position = Vector3.new(0.9, 0, 0)
        else
            A0.Position = Vector3.new(0, 0.9, 0)
        end
        A0.Name = "TrailA0"
        A0.Parent = Part

        local A1 = Instance.new("Attachment")
        if Part == DashPerformerCharacter.Torso then
            A1.Position = Vector3.new(-0.9, 0, 0)
        else
            A1.Position = Vector3.new(0, -0.9, 0)
        end

        A1.Name = "TrailA1"
        A1.Parent = Part
        local trail = Instance.new("Trail")
        trail.Attachment0 = A0
        trail.Attachment1 = A1
        trail.Texture = "rbxassetid://5699911427"
        trail.Color = ColorSequence.new(Color3.new(0, 0, 0))
        trail.LightEmission = 0
        trail.Lifetime = 0.06
        trail.MinLength = 0.2
        trail.Transparency = NumberSequence.new(0.8)
        trail.FaceCamera = true
        trail.Parent = Part
        trail.WidthScale = NumberSequence.new({
            NumberSequenceKeypoint.new(0, 2),
            NumberSequenceKeypoint.new(1, 1),
        })

        task.delay(0.15, function()

            trail:Destroy()
            A0:Destroy()
            A1:Destroy()
        end)
feral vigil
#

just make the 2nd attachment further

fleet owl
#

in what direction?

feral vigil
#

whichever works

fleet owl
#

same as before

#

tried different directions

fleet owl
#

Any ideas how to fix it guys?

gray badge