|
| 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 |
|
|
| |
|
| |
|
| |
|
| |
|
|
| 04 Sep 2017 08:57 AM |
Add prints to see which functions are running and where it stops working.
|
|
|
| Report Abuse |
|
|