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 » Scripting Helpers
Home Search
 

:TranslateBy

Previous Thread :: Next Thread 
robotoblok is not online. robotoblok
Joined: 14 Nov 2009
Total Posts: 207
16 Jul 2011 05:23 PM
what does TranslateBy mean
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
16 Jul 2011 05:24 PM
In what object is this method located, or is it global?

-My hand is a dolphin
Report Abuse
eXoguti093 is not online. eXoguti093
Joined: 17 Oct 2008
Total Posts: 1786
16 Jul 2011 05:25 PM
Locked http://wiki.roblox.com/index.php/TranslateBy
Report Abuse
robotoblok is not online. robotoblok
Joined: 14 Nov 2009
Total Posts: 207
16 Jul 2011 05:25 PM
heres mah hole script:

function waitForChild(instance, name)
while not instance:FindFirstChild(name) do
instance.ChildAdded:wait()
end
end

waitForChild(script.Parent, "Jeep1")
local jeep = script.Parent.Jeep1
waitForChild(script.Parent, "Sign")
local sign = script.Parent.Sign
waitForChild(sign, "ClickDetector")
local clickDetector = script.Parent.Sign.ClickDetector

jeep:TranslateBy(Vector3.new(0,12,0))
local clonedJeep = jeep:Clone()

function spawn()
print("spawn()")
if jeep.Parent~=nil then
print("old jeep found. removing...")
jeep.Parent = nil
end

clonedJeep.Parent = script.Parent
clonedJeep:makeJoints()
jeep = clonedJeep
clonedJeep = jeep:Clone()

-- add fire
waitForChild(jeep, "VehicleSeatBack")
local fire = Instance.new("Fire")
fire.Heat = 0
fire.Size = 30
fire.Color = Color3.new(0.25,0.25,0.25)
fire.SecondaryColor = Color3.new(0,0,0)
fire.Parent = jeep.VehicleSeatBack
print("fire added!")
wait(3)
fire.Color = Color3.new(0.1,0.1,0.1)
wait(0.5)
fire.Color = Color3.new(0.05,0.05,0.05)
wait(0.5)
fire.Color = Color3.new(0.02,0.02,0.02)
wait(0.5)
fire:Remove()
end

spawn()

clickDetector.MouseClick:connect(spawn)
print("done with connections")
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
16 Jul 2011 05:26 PM
=/ I see no reason for it to be locked... It would speed things up a lot.

-My hand is a dolphin
Report Abuse
eXoguti093 is not online. eXoguti093
Joined: 17 Oct 2008
Total Posts: 1786
16 Jul 2011 05:27 PM
Nevermind, not locked.
Report Abuse
robotoblok is not online. robotoblok
Joined: 14 Nov 2009
Total Posts: 207
16 Jul 2011 05:27 PM
is there a way to make a model not offseted just a position to were u want it?
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
16 Jul 2011 05:29 PM
Model:MoveTo(Vector3.new(x, y, z))

-My hand is a dolphin
Report Abuse
robotoblok is not online. robotoblok
Joined: 14 Nov 2009
Total Posts: 207
16 Jul 2011 05:30 PM
thx soo much!
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
16 Jul 2011 05:31 PM
NP.

-My hand is a dolphin
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