Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

A big part of my game with a big problem please help, can you fix my script?

Asked by 10 years ago

This Script is in the Workspace and controls Character stuff on respawn and enter, but it's broken, so I need help fixing it!

Here is the code I have so far:

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        local C = player.TeamColor
        local torso = player.Character["Torso"]
        local head = player.Character["Head"]
        local larm = player.Character["Left Arm"]
        local rarm = player.Character["Right Arm"]
        local lleg = player.Character["Left Leg"]
        local rleg = player.Character["Right Leg"]
        torso.BrickColor = BrickColor.new(C)
        head.BrickColor = BrickColor.new(C)
        larm.BrickColor = BrickColor.new(C)
        rarm.BrickColor = BrickColor.new(C)
        lleg.BrickColor = BrickColor.new(C)
        rleg.BrickColor = BrickColor.new(C)
        local Script = game.ServerStorage.Effects:Clone()
        Script.Parent = character
        wait(1)
        character:WaitForChild("Body Colors"):Destroy()
        Instance.new("PointLight", character.Torso)
        character.Torso.PointLight.Range = 10
        character.Torso.PointLight.Brightness = 3
        character.Torso.PointLight.Shadows = true
        character.Torso.PointLight.Color = BrickColor.new(C)
        wait(1)
        Instance.new("Smoke", character.Torso)
        character.Torso.Smoke.Opacity = 0.15
        character.Torso.Smoke.RiseVelocity = 0.4
        character.Torso.Smoke.Size = 0.4
        character.Torso.Smoke.Color = BrickColor.new(C)
    end)
end)

1 answer

Log in to vote
0
Answered by 10 years ago

If you could please explain in which way it is broken, we could help you much easier.

0
The coloring part of it is broken... TheDarkOrganism 173 — 10y
Ad

Answer this question