|
| 26 Nov 2013 03:46 PM |
| How do you make a script so when your in the pre-game lobby the swords do not hurt you but when your on the map it does? |
|
|
| Report Abuse |
|
|
Thaeh
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 7685 |
|
|
| 26 Nov 2013 03:47 PM |
don't have swords in the lobby ???? profit |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 03:49 PM |
| Thaeh, I have a gui where you buy swords, once you buy the swords they go into your inventory. How can I make it so when the swords go into your inventory you can't hurt anyone in the pre-game lobby but in the Maps? |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 03:53 PM |
Simple enough.
Add a FF script on the main block of the lobby.
Add a FF remover on the main block of the arena.
I would make you those, but I don't know how to locate humans when Touched.
|
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 03:55 PM |
| Ok, I will try will get back to you when finished thanks |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:06 PM |
| I don't know how to locate player either, I tried and it only put the FF on my player any other suggestions? |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:12 PM |
| Did it come up to you that you were probably the only one in the game? |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:15 PM |
| If so, paste the FF script here. |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:15 PM |
| I had used my userID... Is there a way to make so every ID gets the ff? |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:26 PM |
local forceField = Instance.new("ForceField"); forceField.Name = ""; forceField.Parent = script.Parent; wait(20); forceField:remove(); |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:29 PM |
That is... A mess.
1. No function
2. No connection line
Is there more to it? |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:37 PM |
I could use this script I guess? function action() h=script.Parent.Parent.Parent.Parent.Character ll=h:FindFirstChild("Left Leg") ra=h:FindFirstChild("Right Arm") rl=h:FindFirstChild("Right Leg") la=h:FindFirstChild("Left Arm") he=h.Head h. Humanoid.WalkSpeed=16 local ff=Instance.new("ForceField") ff.Parent=h end end |
|
|
| Report Abuse |
|
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 26 Nov 2013 04:40 PM |
| lol noooooo where the connection |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:41 PM |
Lol no.
*A connection line is needed either for onTouched or onMouseButton1.
Not even close.
The forcefield goes into the Torso, not the arms, legs... |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:42 PM |
| script.Parent.onMouseButton1:connect(action) -- Or whatever the function name is |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 04:53 PM |
function action() h=script.Parent.Parent.Parent.Parent.Character he=h.Head if (h.Torso.Anchored==false) then h.Torso.Anchored=false ll.Anchored=false he.Anchored=false ra.Anchored=false la.Anchored=false rl.Anchored=false h.Humanoid.WalkSpeed=16 local ff=Instance.new("ForceField") ff.Parent=h end end script.Parent.MouseButton1Click:connect(action)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Nov 2013 09:56 AM |
Thought of something, click on the Spawn, then change the duration of ForceField to 100000000000, then add a FF remover in the arena.
Something like...
function onTouched()
human = game.Players.LocalPlayer human.ForceField:remove() end
script.Parent.Touched:connect(onTouched)
May or may not work for a FF remover. Put this script into a brick. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2013 10:01 AM |
Wow.
Just put the swords into the StarterPack instead of the Backpack and then reparent to the backpack when you need them (if you want it the easy way). |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2013 10:55 AM |
I figured this out but now I cant figure out the Map Changing script.. When The map changes how do you have it so when the map changes you spawn there and continue to spawn there until the map changes. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 27 Nov 2013 12:56 PM |
script here
until mapnameshere.Parent == true
lol i dunno |
|
|
| Report Abuse |
|
|
Futureof3
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 326 |
|
|
| 27 Nov 2013 01:11 PM |
| I told you needed a parent :) |
|
|
| Report Abuse |
|
|
Futureof3
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 326 |
|
| |
|