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: Pretty simple script that only works in play solo

Previous Thread :: Next Thread 
MilkyWay01 is not online. MilkyWay01
Joined: 22 Feb 2010
Total Posts: 1049
16 Jul 2013 10:19 PM
This script controls parts in a morph that are on the player. All it does is make one part transparent and not able to collide and vice versa for another. Than it puts them back to normal to make it appear as if the right arm moved. It works great in play solo but in play mode nothing happens. I have tried start player to test this out but I can never connect to it.


script.Parent.Equipped:connect(function(m)
m.Button1Down:connect(function()
Person = script.Parent.Parent.Chest
RightArm = Person.rightarm
Arm = Person.arm1

Arm.Transparency = 1
Arm.CanCollide = false
RightArm.Transparency = 0
RightArm.CanCollide = true
wait(1)
Arm.Transparency = 0
Arm.CanCollide = true
RightArm.Transparency = 1
RightArm.CanCollide = false
end)
end)
Report Abuse
BattleFieldPwner is not online. BattleFieldPwner
Joined: 05 May 2013
Total Posts: 233
16 Jul 2013 10:22 PM
script.Parent.Equipped:connect(function(m)
m.Button1Down:connect(function()
Person = script.Parent.Parent.Chest
RightArm = Person.rightarm
Arm = Person.arm1

Arm.Transparency = 1
Arm.CanCollide = false
RightArm.Transparency = 0
RightArm.CanCollide = true
wait(1)
Arm.Transparency = 0
Arm.CanCollide = true
RightArm.Transparency = 1
RightArm.CanCollide = false
(run)
(end)
(end)
Report Abuse
BattleFieldPwner is not online. BattleFieldPwner
Joined: 05 May 2013
Total Posts: 233
16 Jul 2013 10:22 PM
Try that, Maybe it'd work, I'm kinda new to scripting/building
Report Abuse
MilkyWay01 is not online. MilkyWay01
Joined: 22 Feb 2010
Total Posts: 1049
16 Jul 2013 10:26 PM
Thanks for trying but it didnt work
Report Abuse
BattleFieldPwner is not online. BattleFieldPwner
Joined: 05 May 2013
Total Posts: 233
16 Jul 2013 10:31 PM
Try running it local?
Report Abuse
MilkyWay01 is not online. MilkyWay01
Joined: 22 Feb 2010
Total Posts: 1049
16 Jul 2013 10:40 PM
Didnt work
Report Abuse
BattleFieldPwner is not online. BattleFieldPwner
Joined: 05 May 2013
Total Posts: 233
16 Jul 2013 10:43 PM
Try function() on top line?
Report Abuse
MilkyWay01 is not online. MilkyWay01
Joined: 22 Feb 2010
Total Posts: 1049
17 Jul 2013 11:27 PM
Bump
Report Abuse
ninja5566 is not online. ninja5566
Joined: 14 Jan 2009
Total Posts: 5233
17 Jul 2013 11:29 PM
easiest fix ever


wait() ----BOOOOOOOOM
script.Parent.Equipped:connect(function(m)
m.Button1Down:connect(function()
Person = script.Parent.Parent.Chest
RightArm = Person.rightarm
Arm = Person.arm1

Arm.Transparency = 1
Arm.CanCollide = false
RightArm.Transparency = 0
RightArm.CanCollide = true
wait(1)
Arm.Transparency = 0
Arm.CanCollide = true
RightArm.Transparency = 1
RightArm.CanCollide = false
end)
end)


Now put dat as a localscript
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