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 » Scripters
Home Search
 

animation isn't playing?

Previous Thread :: Next Thread 
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
04 Sep 2017 06:56 AM
im trying to see if the player has a specific gamepass, and types in a specific word, it will play the animation.


but for some reason it's not playing it


i put this on ServerScriptService.


local gp = game:GetService("GamePassService")

function DoTheDab(arg)
if arg.RigType == Enum.HumanoidRigType.R6 then
local animation = Instance.new("Animation")
animation.AnimationId = "r######################### local animationTrack = arg:LoadAnimation(animation)
animationTrack:Play()
elseif arg.RigType == Enum.HumanoidRigType.R15 then
local animation = Instance.new("Animation")
animation.AnimationId = "r######################### local animationTrack = arg:LoadAnimation(animation)
animationTrack:Play()
end
end

function PurchasedPass(arg)
return gp:PlayerHasPass(arg, 10###########end

game.Players.PlayerAdded:Connect(function(player)
if PurchasedPass(player) then
player.Chatted:Connect(function(msg)
if msg == "/e dab" then
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChild("Humanoid")
DoTheDab(humanoid)
end
end)
end
end)
Report Abuse
coIourblind is not online. coIourblind
Joined: 25 Dec 2012
Total Posts: 372
04 Sep 2017 07:32 AM
/e dab
Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
04 Sep 2017 07:53 AM
mhm
Report Abuse
Horrible_Pun is not online. Horrible_Pun
Joined: 13 May 2017
Total Posts: 5102
04 Sep 2017 08:21 AM
HelloISeeHashtags
Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
04 Sep 2017 08:27 AM
/16rTaPgX
Report Abuse
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
04 Sep 2017 08:57 AM
Add prints to see which functions are running and where it stops working.

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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