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: Sword script

Previous Thread :: Next Thread 
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
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 is not online. Thaeh
Joined: 05 Feb 2011
Total Posts: 7685
26 Nov 2013 03:47 PM
don't have swords in the lobby
????
profit
Report Abuse
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
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
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
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
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
26 Nov 2013 03:55 PM
Ok, I will try will get back to you when finished thanks
Report Abuse
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
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
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
26 Nov 2013 04:12 PM
Did it come up to you that you were probably the only one in the game?
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
26 Nov 2013 04:15 PM
If so, paste the FF script here.
Report Abuse
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
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
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
26 Nov 2013 04:26 PM
local forceField = Instance.new("ForceField");
forceField.Name = "";
forceField.Parent = script.Parent;
wait(20);
forceField:remove();
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
26 Nov 2013 04:29 PM
That is... A mess.


1. No function

2. No connection line

Is there more to it?
Report Abuse
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
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
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
26 Nov 2013 04:39 PM
Thats from the afk GUI
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
26 Nov 2013 04:40 PM
lol noooooo where the connection
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
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
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
26 Nov 2013 04:42 PM
script.Parent.onMouseButton1:connect(action) -- Or whatever the function name is
Report Abuse
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
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
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
26 Nov 2013 05:25 PM
What are you doing...
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
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
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
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
ItzTheSinister is not online. ItzTheSinister
Joined: 30 Nov 2011
Total Posts: 1147
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 is not online. 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 is not online. Futureof3
Joined: 02 Dec 2011
Total Posts: 326
27 Nov 2013 01:11 PM
I told you needed a parent :)
Report Abuse
Futureof3 is not online. Futureof3
Joined: 02 Dec 2011
Total Posts: 326
27 Nov 2013 02:43 PM
Bumpity
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