|
| 13 Aug 2017 10:28 PM |
In need of a script
-When 4 player are on a part they get tp'ed at different locations (All locations are specific)
-Need to works 4 times (Having 4 of them will work)
-(auto duels tp pad for exemple)
Discord: PulseFire#2958
|
|
|
| Report Abuse |
|
|
iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
| |
|
| |
|
iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
| |
|
|
| 13 Aug 2017 10:39 PM |
Idk what's the work needed and I have no idea about scripts so tell me a price for you to do it
|
|
|
| Report Abuse |
|
|
iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
| |
|
| |
|
iiNemo
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 2380 |
|
|
| 13 Aug 2017 10:42 PM |
| eh I think ill pass that's like nothing tbh, maybe u will find a kid who will do it. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 13 Aug 2017 11:25 PM |
| pay me 22.5k and i'll do it |
|
|
| Report Abuse |
|
|
DevSpec
|
  |
| Joined: 01 Apr 2017 |
| Total Posts: 295 |
|
|
| 13 Aug 2017 11:27 PM |
local prt = script.Parent local loc = { Vector3.new(0,0,0), Vector3.new(10,0,0), Vector3.new(0,0,10), Vector3.new(10,0,10) } local on = {} prt.Touched:connect(function(h) local humanoid = h.Parent:FindFirstChild("Humanoid") or h.Parent.Parent:FindFirstChild("Humanoid") if humanoid then local chr = humanoid.Parent local plr = game.Players:GetPlayerFromCharacter(chr) if plr then table.insert(on, chr) if #on==4 then for i,v in pairs(on) do v:MoveTo(loc[i] + Vector3.new(0,v:GetExtentsSize()/2,0) end end end end end) prt.TouchedEnded:connect(function(h) local humanoid = h.Parent:FindFirstChild("Humanoid") or h.Parent.Parent:FindFirstChild("Humanoid") if humanoid then local chr = humanoid.Parent local plr = game.Players:GetPlayerFromCharacter(chr) if plr then for i,v in paris(on) do if v==chr then table.remove(on, i) end end end end end)
|
|
|
| Report Abuse |
|
|
DevSpec
|
  |
| Joined: 01 Apr 2017 |
| Total Posts: 295 |
|
|
| 13 Aug 2017 11:29 PM |
No pay necessary, I was bored. Not sure if it works as I haven't tested, but it should, unless there's a small typo or something.
prt is the pad you want them to have to stand on loc is an array of locations you want them to be teleported to
oh, and I just found an issue, change the line starting with v:MoveTo
to this:
v:MoveTo(loc[i] + Vector3.new(0,v:GetExtentsSize().Y/2,0))
|
|
|
| Report Abuse |
|
|
|
| 13 Aug 2017 11:37 PM |
^ Thanks for being the kind of person I wish this sub(forum) was made up of
Šçrätčh ïïś üśëd bÿ łëvëł 17 äñöñ DÖŠ HTMŁ hæx0rs whö üsë ŚQŁ++ ïïńśpëçt ëłæmęñtïïñg |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2017 11:41 PM |
^^ I just tried it and it works when there is only 1 player on it and I get tped to a random location
Still thank you for you time and help
|
|
|
| Report Abuse |
|
|
DevSpec
|
  |
| Joined: 01 Apr 2017 |
| Total Posts: 295 |
|
|
| 13 Aug 2017 11:45 PM |
Hang on, I'll fix it. Give me a second
|
|
|
| Report Abuse |
|
|
DevSpec
|
  |
| Joined: 01 Apr 2017 |
| Total Posts: 295 |
|
|
| 13 Aug 2017 11:52 PM |
I'm about 95% sure that this will work
local prt = script.Parent local loc = { Vector3.new(0,0,0), Vector3.new(10,0,0), Vector3.new(0,0,10), Vector3.new(10,0,10) } local on = {} function inTable(tab, obj) for i,v in pairs(tab) do if v==obj then return true end end return false end prt.Touched:connect(function(h) local humanoid = h.Parent:FindFirstChild("Humanoid") or h.Parent.Parent:FindFirstChild("Humanoid") if humanoid then local chr = humanoid.Parent local plr = game.Players:GetPlayerFromCharacter(chr) if plr and not inTable(on, plr) then table.insert(on, plr) if #on==4 then for i,v in pairs(on) do v.Character:MoveTo(loc[i] + Vector3.new(0,v.Character:GetExtentsSize().Y/2,0)) end for i=1,#on do table.remove(on,i) end end end end end) prt.TouchEnded:connect(function(h) local humanoid = h.Parent:FindFirstChild("Humanoid") or h.Parent.Parent:FindFirstChild("Humanoid") if humanoid then local chr = humanoid.Parent local plr = game.Players:GetPlayerFromCharacter(chr) if plr then for i,v in pairs(on) do if v==plr then table.remove(on, i) end end end end end)
|
|
|
| Report Abuse |
|
|
|
| 13 Aug 2017 11:56 PM |
Thank you so much! We need more people like you in the community.
Now I need to find 3 other player to test it ;-;
And how do I select the loc I want (I place 4 loc parts on different locations?)
|
|
|
| Report Abuse |
|
|
DevSpec
|
  |
| Joined: 01 Apr 2017 |
| Total Posts: 295 |
|
|
| 14 Aug 2017 12:34 AM |
See where I put
local loc = { Vector3.new(0,0,0), Vector3.new(10,0,0), Vector3.new(0,0,10), Vector3.new(10,0,10) }
Put 4 parts on the map at each location. Select each part, open the Properties window, and copy the Position property of the part. Paste it in one of the Vector3.new()
For example, say it says 1,8.4,1 in the Position property. You would change the loc array to this:
local loc = { Vector3.new(1,8.4,1), Vector3.new(10,0,0), Vector3.new(0,0,10), Vector3.new(10,0,10) }
and repeat for each of the parts
|
|
|
| Report Abuse |
|
|
DevSpec
|
  |
| Joined: 01 Apr 2017 |
| Total Posts: 295 |
|
|
| 14 Aug 2017 12:36 AM |
Also, to test, in studio go to the "Test" tab, you can start a server with 4 'fake' players in it that you control
|
|
|
| Report Abuse |
|
|