Maplen
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 545 |
|
|
| 28 Oct 2012 08:17 PM |
function onEquipped(mouse) script.Parent.Parent.Humanoid.WalkSpeed = 24 mouse.Button1Down:connect(function() onButton1Down(mouse) end) end script.Parent.Equipped:connect(onEquipped)
function onUnequipped(mouse) if script.Parent.Parent.Parent.className == "Player" then script.Parent.Parent.Parent.Character.Humanoid.WalkSpeed = 16 for i,v in pairs(script.Parent:GetChildren()) do if v.Name == "pacnake" then v:remove() end end end end script.Parent.Unequipped:connect(onUnequipped)
---------------------------------------------------------------------------------------------------- Make sure it is in a tool / and a handle is in it / You may add a mesh too! ---------------------------------------------------------------------------------------------------- Tool = script.Parent; local arms = nil local torso = nil local welds = {}
function Equip(mouse) wait(0.01) arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")} torso = Tool.Parent:FindFirstChild("Torso") if arms ~= nil and torso ~= nil then local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")} if sh ~= nil then local yes = true if yes then yes = false sh[1].Part1 = nil sh[2].Part1 = nil local weld1 = Instance.new("Weld") weld1.Part0 = torso weld1.Parent = torso weld1.Part1 = arms[1] weld1.C1 = CFrame.new(1, 0.2, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(15), 0) welds[1] = weld1 local weld2 = Instance.new("Weld") weld2.Part0 = torso weld2.Parent = torso weld2.Part1 = arms[2] weld2.C1 = CFrame.new(-1, 0.2, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0) welds[2] = weld2 end else print("sh") end else print("arms") end end
function Unequip(mouse) if arms ~= nil and torso ~= nil then local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")} if sh ~= nil then local yes = true if yes then yes = false sh[1].Part1 = arms[1] sh[2].Part1 = arms[2] welds[1].Parent = nil welds[2].Parent = nil end else print("sh") end else print("arms") end end Tool.Equipped:connect(Equip) Tool.Unequipped:connect(Unequip) ---------------------------------------------------------------------------------------------------- ^ THAT IS A WELD SCRIPT ^ MAKE SURE THAT IS PART OF THE TOOL TOO! |
|
|
| Report Abuse |
|
|
Maplen
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 545 |
|
|
| 28 Oct 2012 08:18 PM |
| I like making RPG games / stuff.. |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|
|
| 28 Oct 2012 09:55 PM |
You guys make simple RPG, SAME looking guy, same everything, respawn. <-- Simple SHIZZLe
Make a skinRandomizer Make a clothRandmizer
There gave you a new idea. |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
| |
|
| |
|
Maplen
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 545 |
|
|
| 29 Oct 2012 08:04 PM |
If you play my game , you will see how this works , The tool changes your walkspeed OnEquipped. |
|
|
| Report Abuse |
|
|
LeLe2L
|
  |
| Joined: 09 Jul 2012 |
| Total Posts: 5 |
|
|
| 29 Oct 2012 08:08 PM |
Z0Mg DuD3 , DAnX S0000 MuCH! U R S0 U3Er L1KE S! |
|
|
| Report Abuse |
|
|
LeLe2L
|
  |
| Joined: 09 Jul 2012 |
| Total Posts: 5 |
|
|
| 29 Oct 2012 08:11 PM |
Umm maplen , can you give me your whole mount thing? I can't make my own , i inserteded a tooled , and i putted scripts in and i testeded it but i would ent werk maplen plz plz maplen plzzzz tell me maplen umg like seriously maplen i ant a rpg like os bad |
|
|
| Report Abuse |
|
|
LeLe2L
|
  |
| Joined: 09 Jul 2012 |
| Total Posts: 5 |
|
|
| 29 Oct 2012 08:14 PM |
| 1pie23 ur rpg sucks , my is waaaaaaaaaaaaaaaaaaay best |
|
|
| Report Abuse |
|
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
|
| 29 Oct 2012 08:20 PM |
| Umg it has like 1.49 million more visits den yours umg |
|
|
| Report Abuse |
|
|
Maplen
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 545 |
|
| |
|
1pie23
|
  |
| Joined: 11 Jul 2010 |
| Total Posts: 1865 |
|
|
| 29 Oct 2012 08:27 PM |
@Maplen I was talking to LeLe ;P
Or you were saying that my previous statement to LeLe was true. |
|
|
| Report Abuse |
|
|
Maplen
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 545 |
|
|
| 29 Oct 2012 08:29 PM |
@1pie23 , I meant that your statement about lele2l is true. umgggg |
|
|
| Report Abuse |
|
|
Maplen
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 545 |
|
|
| 29 Oct 2012 08:33 PM |
@1pie23 , I like your games ... aren't you that famous user somewhere?...
|
|
|
| Report Abuse |
|
|