Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

The Parts arent visible. Help?

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

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

Brick.Transparency = 0

5 comments

0

If not said then the part will automatically have a transparency of 0

1

Just trying to cover all possibilitys. Thanks for the feedback.

0

np

1

Thats what i do, giving useless answer :D

0

did you read the script? thanks anyways.

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.

1 comment

0

Sorry if I'm wrong.

This discussion is preserved as it was. New answers, comments, and votes are closed.