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

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

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.

1 comment

0

Saying SOLVED BY SELF Seems kinda braggy..

2 answers

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

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