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: Dance tool only works in solo?

Previous Thread :: Next Thread 
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
22 May 2013 01:08 PM
This is a dance tool. But it doesn't seem to work in server mode. Only in solo.

-- ToolScript

local tool=script.Parent
local db=false
local ds=tool.DanceScript

tool.Equipped:connect(function(m)
m.Button1Down:connect(function()
if not db then db=true
dance=ds:Clone()
dance.Parent=tool.Parent
dance.Disabled=false
tool.Handle.Transparency=1
wait(15)
tool.Handle.Transparency=0
db=false
end
end)
end)

-- DanceScript

local player = script.Parent
local animFile = script.partyanim:Clone()
local soundFile = script.DanceSound:Clone()
animFile.Parent = player
soundFile.Parent = player
local anim = player.Humanoid:LoadAnimation(animFile)

soundFile:Play()
anim:Play()

wait(15)
soundFile:Stop()
anim:Stop()
soundFile:remove()
animFile:remove()
anim:remove()
script:remove()

-- No output.
Report Abuse
uyjulian is not online. uyjulian
Joined: 29 Nov 2012
Total Posts: 1214
22 May 2013 01:09 PM
Localscript?
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
22 May 2013 01:14 PM
Since when does that have to be in a local script?
Report Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
22 May 2013 01:26 PM
You can't get mouse from the Equipped event unless its a local script. Its always been that way, lol.
Report Abuse
ellosss is not online. ellosss
Joined: 15 Mar 2009
Total Posts: 7030
23 May 2013 09:34 AM
I guess that's only with Tools then. I'm used to using Hopperbins.
Report Abuse
EnzanJPN is not online. EnzanJPN
Joined: 22 May 2013
Total Posts: 54
23 May 2013 09:51 AM
^
Yep.
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