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: Warp Script

Previous Thread :: Next Thread 
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
19 Jul 2011 06:42 AM
Hi everyone,
I made this thread beacause I'd need a script that would allow spaceships to warp... Like, you imput the Position coordinates (ex: -111, 000, 222) and the ship would warp! I'm a new player btw so I'm not so sure how to script this... (see, I'm not even sure I posted this at the right place lol) So if you know how to do that, please reply!
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
19 Jul 2011 06:50 AM
[ Content Deleted ]
Report Abuse
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
19 Jul 2011 03:23 PM
As you wish... But then, tell me where must I post my requests?
(btw I'll pay for the person who will give me a working script...)
Report Abuse
likey476 is not online. likey476
Joined: 28 Feb 2009
Total Posts: 100
19 Jul 2011 03:58 PM
Well, that guy was just flat out mean. You can request here, but it might just not get you much help. Try asking, "Can you help me start the script?", or something like that. That might get you more people willing to help.
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
19 Jul 2011 06:17 PM
[ Content Deleted ]
Report Abuse
ZackZak is not online. ZackZak
Joined: 26 Jul 2009
Total Posts: 2811
19 Jul 2011 06:21 PM
Depends how you want them to input the destination.
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
19 Jul 2011 06:24 PM
Make 3 TextBoxes
Make 1 TextButton

Make script that will check the cords of all 3 textboxes then make a part at the position where those 3 textboxes showed to then move the model (of the ship) at the position of the part.

Pretty simple, just needs an idea.
Report Abuse
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
20 Jul 2011 05:37 AM
@CrniOrao

Well, I've been trying to make this script for 3 hours now, but it seems luck isn't with me this time (or, did I overestimated my capacities to script??), beacause I couldn't get a working thing... so, could you please do it for me? if you agree, I will pay you, and, of course, I will give you full credit... I you don't agree, well, thanks very much for your ideas anyway!
Report Abuse
OBF is not online. OBF
Joined: 29 Sep 2009
Total Posts: 10709
20 Jul 2011 05:44 AM
"This is not the forum to request whole scripts to be made for you"- MDB

Yes, that is a legit quote. Anyways, you should learn to script insteadofmooching off others.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Jul 2011 05:56 AM
posX = game.Workspace.su8.Position.X
posY = game.Workspace.su8.Position.Y
posZ = game.Workspace.su8.Position.Z
Xvalue = Instance.new("IntValue")
Xvalue.Value = posX
Yvalue = Instance.new("IntValue")
Yvalue.Value = posY
Zvalue = Instance.new("IntValue")
Zvalue.Value = posZ

print "X: " tostring(Xvalue.Value)
print "Y: " tostring(Yvalue.Value)
print "Z: " tostring(Zvalue.Value)

There
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Jul 2011 05:57 AM
Ups i ment

game.Workspace.su8.Torso.Position
sorry
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Jul 2011 06:02 AM
Ugh..

This works


while true do
wait(0.01)
posX = game.Workspace.su8.Torso.Position.X
posY = game.Workspace.su8.Torso.Position.Y
posZ = game.Workspace.su8.Torso.Position.Z
Xvalue = Instance.new("IntValue")
Xvalue.Value = posX
Yvalue = Instance.new("IntValue")
Yvalue.Value = posY
Zvalue = Instance.new("IntValue")
Zvalue.Value = posZ

game.Workspace.Message.Text = "X: ".. tostring(Xvalue.Value) .." Y: ".. tostring(Yvalue.Value) .." Z: ".. tostring(Zvalue.Value)
end
Report Abuse
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
20 Jul 2011 06:20 AM
@Su8

THANK YOU VERY MUCH!!! (but, erm, if you don't mind telling me, where should I put this script? in the seat or... I don't know? lol)
Report Abuse
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
20 Jul 2011 06:25 AM
@OBF

I would like to post future requests (I hope I won't have many) on the right forum, so could you please tell me where to put my "whole script requests"?
Report Abuse
BladzofChaos70 is not online. BladzofChaos70
Joined: 27 Sep 2008
Total Posts: 2550
20 Jul 2011 07:25 AM
@Crni

That's uneccesary to have 3 textboxes, just have 1 and do something like this:

function teleship()

coords = { }

for number in string.gmatch(script.Parent.Text, "%d+") do
table.insert(coords, number)
end

if (#coords==3) then

Starship:MoveTo(coords[1], coords[2], coords[3])
coords = { }

end

script.Parent.MouseLeave:connect(teleship)
Report Abuse
BladzofChaos70 is not online. BladzofChaos70
Joined: 27 Sep 2008
Total Posts: 2550
20 Jul 2011 07:27 AM
function teleship()

local coords = { }

for number in string.gmatch(script.Parent.Text, "%d+") do
table.insert(coords, number)
end

if (#coords==3) then

Starship:MoveTo(coords[1], coords[2], coords[3])

end
end

--Forgot to close the function & realized that you didn't need to set coords back to { } in the conditional, it would do that automatically when the function was run.
Report Abuse
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
20 Jul 2011 07:58 AM
Same question : where do I put the script? i tried to put it i the ship's seat, but nothing happened... (Thanks btw for your help)
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Jul 2011 08:08 AM
while true do
wait(0.01)
posX = script.Parent.Position.X
posY = Script.Parent.Position.Y
posZ = script.Parent.Position.Z
Xvalue = Instance.new("IntValue")
Xvalue.Value = posX
Yvalue = Instance.new("IntValue")
Yvalue.Value = posY
Zvalue = Instance.new("IntValue")
Zvalue.Value = posZ

game.Workspace.Message.Text = "X: ".. tostring(Xvalue.Value) .." Y: ".. tostring(Yvalue.Value) .." Z: ".. tostring(Zvalue.Value)
end



Put this into the seat
that game.Workspace.Message can be anything what has Text
like a textlabel in gui
Report Abuse
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
20 Jul 2011 08:24 AM
My computer lags... And I'm probably a incredible noob but... could you please update it on my ship? I did exacly what you told me to do, but it didn't work.If you have time, I would like you to update the script and things in it. Here's the URL (if you have time and if you want) :

http://www.roblox.com/For-Su8-item?id=56985135

(BTW I don't know why they say my model is not trusted... I checked it for viruses... I'll check it again later)
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Jul 2011 09:01 AM
That last script didn't work because of one S should be "s"

so i've made a gui for you
take my first model

(when you sit to the seat a gui shows)
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
20 Jul 2011 09:08 AM
http://www.roblox.com/Forum/ShowPost.aspx?PostID=9772680
This is how the forum works.
You post your script here, we fix it.
We won't edit it the way you like, we don't make stuff for you, we only fix scripts.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
20 Jul 2011 09:40 AM
It means we dont have to make stuff, but if we want we can do?
who says that i cant do models for them who needs those?
Report Abuse
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
20 Jul 2011 09:46 AM
THANK YOU SOOOOOOO MUCH FOR YOUR TIME AND PATIENCE IN HELPING ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Report Abuse
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
20 Jul 2011 01:41 PM
Again, thank you, but there seems to be a misunderstanding : What I need is a device which teleports me to the coordinates I set... (Like the one in BATTLE OF THE TITANS, by Horatio45). So if I am not too much of an annoyance and you want to help me, I would appreciate it. (btw, I'm a much better builder than scripter, so if you need any help with building, feel free to PM me.)
Report Abuse
TheUnstable is not online. TheUnstable
Joined: 16 Jun 2011
Total Posts: 83
28 Jul 2011 05:30 AM
No one answered... (check my last post...)
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