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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Gravity Hopperbin

Previous Thread :: Next Thread 
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
14 Apr 2014 08:33 PM
I want to make a tool that creates a black hole-like object in front of you. I have the ability to make the object appear, but I was wondering, would I use BodyForce and add them to all 3 Axis Directions to pull you in? If not, would I do something with the player and BodyForce? If not either one, what do I do to make it pull you in?
Report Abuse
Xision is not online. Xision
Joined: 16 Jul 2013
Total Posts: 51
14 Apr 2014 08:34 PM
They have free models.
Report Abuse
AmethystKnight is not online. AmethystKnight
Joined: 08 Apr 2014
Total Posts: 36
14 Apr 2014 08:36 PM
A LONG time ago, I made a black hole script at a script builders. I used BodyPositions to pull objects into oblivion.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
14 Apr 2014 08:37 PM
you could insert a BodyGyro into the Torso,and have it like

BodyGyro.cframe = CFrame.new(torso.Position,blackhole.Position)--will make it look at that

then move them forwards I suppose
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
14 Apr 2014 08:37 PM
@Amethyst Ok, I'll try that! Thanks.
Report Abuse
AmethystKnight is not online. AmethystKnight
Joined: 08 Apr 2014
Total Posts: 36
14 Apr 2014 08:41 PM
I suppose it's unrealistic to do any of the above methods.
If you really wanted to impress some people, I'd get into a lot of physics related things with gravity and stuff.

(Although, I'm not sure how you'll have the light be affected by the black hole's massive gravity, ha ha!)
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
14 Apr 2014 08:43 PM
repeat game.Lighting.Brightness = game.Lighting.Brightness-0.1 until game.Lighting.Brightness<=0

boom
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
14 Apr 2014 08:44 PM
oop,forgot a "wait()" in there XD

flooooooooodcheccccccckkkkkk
y
floodcheck?
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
14 Apr 2014 08:48 PM
@Amethyst Maybe I can make it work with pointlights, but whatever. I tried BodyPosition and it works! Here is what I came up with:(I changed it to a Tool!)

script.Parent.Activated:connect(function()

CenterPart = game.Workspace.CenterPart

BodyPos = Instance.new("BodyPosition")
BodyPos.maxForce = Vector3.new(40000, 40000, 40000)
BodyPos.position = CenterPart.Position

wait(0.01)

BodyPos.Parent = script.Parent.Parent.Torso

wait(6)

script.Parent.Parent.Torso.BodyPosition:remove()
end)
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
14 Apr 2014 08:49 PM
It doesn't work e.e.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
14 Apr 2014 08:50 PM
make sure theres a part in the tool named "Handle" for activated to work..


Tool
-Handle
-Script
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
14 Apr 2014 08:50 PM
I knew dat :3 (not)
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
14 Apr 2014 08:51 PM
It works now!!!!!!!!
Report Abuse
AmethystKnight is not online. AmethystKnight
Joined: 08 Apr 2014
Total Posts: 36
14 Apr 2014 08:53 PM
"repeat game.Lighting.Brightness = game.Lighting.Brightness-0.1 until game.Lighting.Brightness<=0"

Well this would work if the black hole had an infinite gravitational range. Unfortunately this is not so. Not to be mean or anything, but you'd have to somehow distort the light that enters the black hole's gravitational pull. Then you have to make sure your black hole doesn't reflect any light (it absorbs it all)!
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
14 Apr 2014 08:56 PM
repeat wait() game.Lighting.Brightness = game.Lighting.Brightness-0.1 until game.Lighting.Brightness<=0
game.Lighting:ClearAllChildren()
game.Lighting.TimeOfDay = *""..math.random(14,20)..":".."00:".."00")
Report Abuse
IntelligentBeing is not online. IntelligentBeing
Joined: 11 Jul 2013
Total Posts: 523
14 Apr 2014 09:01 PM
@Amethyst, I've watched a lot of videos on gravity and I agree with you, it only absorbs the light within the range of the black holes force. ROBLOX doesn't have a "Bend Light" feature. Maybe we can make something similar to it? Just a thought.
Report Abuse
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
14 Apr 2014 09:12 PM
If you want it realistic, make it cast a ray, and catch any objects in the ray at a certain distance and divide the power up based on distance of the robloxian from the black hole. :) Hope I helped.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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