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: RPG mount script

Previous Thread :: Next Thread 
Maplen is not online. 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 is not online. Maplen
Joined: 19 Sep 2012
Total Posts: 545
28 Oct 2012 08:18 PM
I like making RPG games / stuff..
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
28 Oct 2012 09:52 PM
Me too C:
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
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 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
28 Oct 2012 09:57 PM
Or do what I did.
Report Abuse
Awesomeness4000 is not online. Awesomeness4000
Joined: 09 Jul 2010
Total Posts: 459
28 Oct 2012 10:10 PM
Wrong forum ._.
Report Abuse
Maplen is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Maplen
Joined: 19 Sep 2012
Total Posts: 545
29 Oct 2012 08:25 PM
True
Report Abuse
1pie23 is not online. 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 is not online. 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 is not online. 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
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