|
| 17 Apr 2016 10:19 AM |
| I made spheres that "orbit" around your character. In studio all 8 are the exact same distance away from each other(Perfect). But in-game they are closer together and there is a large gap between sphere 1 and sphere 8. (Note: This is in a localscript using RenderStepped and FE is enabled) |
|
|
| Report Abuse |
|
|
Salinas23
|
  |
| Joined: 28 Dec 2008 |
| Total Posts: 37141 |
|
|
| 17 Apr 2016 10:23 AM |
Maybe you are moving the spheres before all can be created.
I would first create all 8 spheres, position them correctly, and then start moving them. That way I make sure they are same distance away.
-Salinas con el número 23 |
|
|
| Report Abuse |
|
|
wi_sh
|
  |
| Joined: 26 Feb 2016 |
| Total Posts: 156 |
|
|
| 17 Apr 2016 10:24 AM |
| thanks for posting the script |
|
|
| Report Abuse |
|
|
|
| 17 Apr 2016 10:54 AM |
orbs = game.Workspace.Model:GetChildren()
repeat wait() until game.Players.LocalPlayer.Character ~= nil
orbsPIO = {}
for i,v in pairs(orbs) do table.insert(orbsPIO, i, 31.415965359*tonumber(string.sub(v.Name, 7,7))) end
isReady = true
game:GetService("RunService").RenderStepped:connect(function() if isReady == true then for i,v in pairs(orbs) do local D = 5 local S = 0.025 local A = 0 orbsPIO[i] = orbsPIO[i] + 1 local PIO = orbsPIO[i] wait() v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.fromEulerAnglesXYZ(A, PIO*S, 0)*CFrame.new(0, 0, D) end end end) |
|
|
| Report Abuse |
|
|