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
|
  |
| Joined: 29 Nov 2012 |
| Total Posts: 1214 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 22 May 2013 |
| Total Posts: 54 |
|
| |
|