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
 

Re: Is searching for assisstance

Previous Thread :: Next Thread 
Tikobe is not online. Tikobe
Joined: 12 Aug 2011
Total Posts: 6366
22 Jun 2012 08:58 PM
I am currently trying to make a game, but I'm a novice. So I'm here to ask for help on a script that will transport you to a random location (Out of 7 selected spots) every 5 seconds for people who choose to be a player and not a audience member. If you can help, I would be thankful (even though I'm not sure gratitude would be much, but I'll give yah some tix for the script)
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
22 Jun 2012 09:47 PM
what you need to do is put the spots in a model and give each a unique name like "spot1" and "spot2" and so forth. Then put this in workspace:

while wait(5) do
for _,v in pairs(game.Players:GetPlayers()) do
if v.Character then
local t = v.Character:FindFirstChild("Torso")
if t then
t.CFrame = workspace.SPOTMODEL:GetChildren()[math.random(#workspace.SPOTMODEL:GetChildren())].CFrame+Vector3.new(0,3,0)
end
end
end
end

There is a script to get you started.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
22 Jun 2012 09:49 PM
Thanks. This will now go into the Endless Queue of Requested scripts made here on Scripting Helpers.
Report Abuse
Tikobe is not online. Tikobe
Joined: 12 Aug 2011
Total Posts: 6366
22 Jun 2012 09:57 PM
Thank you, bunny, for explaining it to me, and thank you, white, for the smart alex comment. :D
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