local counter = 0
local ref = script.Parent.Parent.Ref
local function increaseHeight(part, amount, amount2, neg)
amount2 = amount *counter
local refo = script.Parent.Parent.Ref.CFrame
part.Size += Vector3.new(0,amount,0)
part.CFrame = refo+Vector3.new(0, 0, 0)
part.CFrame *= CFrame.new(0,-amount2/2,0)
if neg == 1 then
counter += 1
else
counter -= 1
end
end
while task.wait() do
local w = 0
local touchingparts = script.Parent:GetTouchingParts()
if #touchingparts > 0 or Light.Size.Y >= 33 then
w = -1
increaseHeight(Light, w, w, 1)
else
w = 1
increaseHeight(Light, w, w, 0)
end
end```
#It's just phasing like the flash.
1 messages · Page 1 of 1 (latest)
I was trying to make collision
and have the beam shrink
whenever it hits something
but
it like
became sentient or something and found a workaround
and instead it just goes around objects
oh no wait it's not going AROUND, It's just going... on the wrong side of the object??? yeah because it's 2 beams
and one has no collision cas it's decorative, the first one, makes the beam look smoother
yeah so the second one which has the code is just going on the wrong side entirely
this is what it's SUPPOSED to do, but it flashes between the one side and the other
and sometimes the beam just leaves entirely :(
straight deletes itself
please someone help me I am so confused
I'm gonna go take out the garbage now
the flash i see is in my eyes after i look at your white mode post
It's scripting wdym