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

[REPOST] My floating script won't work and no errors in the output log... any help?

Asked by 6 years ago

Alright, so i am making an obby with floating lava, since it is based over a black hole (do not ask). I am using a server-side (plain). You can look at the screenshot of the explorer here.

The script:

01local pos = script.Parent.BodyPosition.Position
02local curpos = script.Parent.Position
03local pos1 = script.Parent.Point1.Position
04local pos2 = script.Parent.Point2.Position
05local i = true
06pos = pos2
07 
08while true do
09    wait(.1)
10    if curpos == pos1 then
11        pos = pos2
12        i = false
13    elseif curpos ==pos2 then
14        pos = pos1
15    elseif i == true then
16        pos = pos1
17        i = false
18    end
19end

Thanks in advance.

Link not working? Try pasting this link into your web bar: https://imgur.com/a/WxzuqGa

****NOTE:**** THIS IS A REPORT.

0
you can always try countering gravity if you want to make the thing float DeceptiveCaster 3761 — 6y
0
Do you want the part to have less gravity, like it's in space? User#26817 0 — 6y
0
No, just float up and down. Like it's in an obby. (cuz it is) GamingZacharyC 152 — 6y

Answer this question