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

The Parts arent visible. Help?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

So, the walkspeed script, adding on I tried to make it like the flash where light travels behind him. Any idea on how to insert particles scripting? And, whats wrong with the parts? I don't see them. It doesn't error out on the output because my speed increases.

Player = game.Players.LocalPlayer
Character = Player.Character
Torso = Character.Torso
Mouse = Player:GetMouse()
hold = false

Mouse.Button1Down:connect(function()


    if hold == false then
        hold = true
        while hold == true do
            wait(0.00001)
            Player.Character.Humanoid.WalkSpeed = Player.Character.Humanoid.WalkSpeed +1
                local Brick = Instance.new("Part", Player)
                Brick.Anchored = true
                Brick.Position = Torso.Position
                Brick.BrickColor = BrickColor.new("New Yeller")
                Brick.Size = Vector3.new(3,5,4)


        end
    end


end)



Mouse.Button1Up:connect(function()
    if hold == true then
        hold = false
        Player.Character.Humanoid.WalkSpeed = 16

    end
end)

2 answers

Log in to vote
1
Answered by 8 years ago

if its not visible, is the part transparent? if so that can be fixed by adding this:

Brick.Transparency = 0
0
If not said then the part will automatically have a transparency of 0 neoG457 315 — 8y
1
Just trying to cover all possibilitys. Thanks for the feedback. ghosteffectz 115 — 8y
0
np neoG457 315 — 8y
1
Thats what i do, giving useless answer :D ghosteffectz 115 — 8y
0
did you read the script? thanks anyways. tyler46783 0 — 8y
Ad
Log in to vote
0
Answered by
neoG457 315 Moderation Voter
8 years ago
Player = game.Players.LocalPlayer
Character = Player.Character
Torso = Character.Torso
Mouse = Player:GetMouse()
hold = false

Mouse.Button1Down:connect(function()


    if hold == false then
        hold = true
        while hold == true do
            wait(0.00001)
            Player.Character.Humanoid.WalkSpeed = Player.Character.Humanoid.WalkSpeed +1
                local Brick = Instance.new("Part", Character) --Changed Player to Character
                Brick.Anchored = true
                Brick.Position = Torso.Position
                Brick.BrickColor = BrickColor.new("New Yeller")
                Brick.Size = Vector3.new(3,5,4)


        end
    end


end)



Mouse.Button1Up:connect(function()
    if hold == true then
        hold = false
        Player.Character.Humanoid.WalkSpeed = 16

    end
end)

I think it is because you made the part a child of Player which you defined as game.Players.LocalPlayer for it to be visible it would need to be a child of the players character.

0
Sorry if I'm wrong. neoG457 315 — 8y

Answer this question