generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Works Perfect In Studio, Messes Up In-Game

Previous Thread :: Next Thread 
AStoryUntold is not online. AStoryUntold
Joined: 09 Mar 2013
Total Posts: 237
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 is not online. 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 is not online. wi_sh
Joined: 26 Feb 2016
Total Posts: 156
17 Apr 2016 10:24 AM
thanks for posting the script
Report Abuse
AStoryUntold is not online. AStoryUntold
Joined: 09 Mar 2013
Total Posts: 237
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image