Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Play animation you dont own, on key?

Asked by
iNicklas 215 Moderation Voter
9 years ago

local id = 666

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.KeyDown:connect(onKeyDown)

function onKeyDown(key)
    if (key~=nil) then
        key = key:lower()
        if (key=="e")  then
            -----------------------------PWEESE
        end
    end
end 
0
The wiki article says this .-. unmiss 337 — 9y
0
WELL SORRY I COULDNT FIND ONE. iNicklas 215 — 9y

2 answers

Log in to vote
2
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

Currently, you can't play animations you don't own. There used to be a way where you can transfer animations from account to account, but that requires sharing your account credentials (Only do it with a highly trusted person). Sorry

Ad
Log in to vote
0
Answered by
ImageLabel 1541 Moderation Voter
9 years ago

Actually, there is a way to load animations you do not own. I'm not completely sure whether or not it's still functional as I haven't used it in quite a while, but using "rbxassetid://" to define the animation id allows you to run other people's animations.

In other words, when supplying an id to the animationId property, use rbxassetId:// instead of http://www.roblox.com/asset/?id.

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.KeyDown:connect(onKeyDown)

function onKeyDown(key)
    if (key~=nil) then
        key = key:lower()
        if (key=="e")  then 
            -- Instanciate or reference to animation
            -- animation.animationId = 'rbxassetid://1'
            -- humanoid:LoadAnimation(animation)
            -- play
        end
    end
end 
1
Is that true? I must test that. Spongocardo 1991 — 9y
0
It is ImageLabel 1541 — 9y
0
USE USERINPUTSERVICE GEAHHH!!! EzraNehemiah_TF2 3552 — 9y
0
Really! They allowed that!? Shawnyg 4330 — 9y

Answer this question