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

how to make my flaming ball stay in position? *SOLVED BY SELF*

Asked by 8 years ago
nuke = script.Parent


while wait(0) do    
    nuke.Position = Vector3.new(-10.396, 0.5, 25.025)
    nuke.Size = nuke.Size + Vector3.new(1,1,1)
    nuke.Transparency = nuke.Transparency + .0111111
end

Is my loop after changing a brick into a ball and changing color in a different script. I have the first script doing whatever i put in it and then enable this script and it works and expands etc but doesnt stay in position when i touch it. What can I change to the loop to keep the ball in the same spot when i walk through it every 0 second loop. Basically Whenever I walk through it It floats trying not to touch me. In other words what can I add to the script to make it so I can walk through the ball while its expanding. I tested it also by puttign in a box of blocks the ball did nt expand through them it floated to avoide goign through.

Update Solution: Remember how I stated that I have two scripts. Well i tried disabling one in which was the touch script. Well, basically with the first script left on its as if the game keeps re spawning the brick more than once.

0
Saying *SOLVED BY SELF* Seems kinda braggy.. fireboltofdeath 635 — 8y

2 answers

Log in to vote
1
Answered by
4Bros 550 Moderation Voter
8 years ago

Ok so make sure the nuke is Anchored and the Cancollide property is set to false. When vector3 arguments like size and position are changed, they don't let parts that have cancollide true intersect with other parts. Also, when a part is in the shape of a ball, its size needs to be symmetrical.

This should fix your problem.

local nuke = script.Parent
nuke.Anchored = true
nuke.CanCollide = false


while wait() do
nuke.Size = nuke.Size + Vector3.new(1,1,1) 
nuke.Transparency = nuke.Transparency + .0111111
end

Ad
Log in to vote
-1
Answered by 8 years ago

You could just anchor the ball.

0
IT is anchored robloxiveboy 25 — 8y
0
Nice. Redbullusa 1580 — 8y
0
Man why downvote? I didn't know if it was anchored or not. TheZankonator -2 — 8y
0
woooow XD robloxiveboy 25 — 8y
0
Who did that robloxiveboy 25 — 8y

Answer this question