Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Play animation you dont own, on key?

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 

2 comments

0

The wiki article says this .-.

0

WELL SORRY I COULDNT FIND ONE.

2 answers

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

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 

4 comments

1

Is that true? I must test that.

0

It is

0

USE USERINPUTSERVICE GEAHHH!!!

0

Really! They allowed that!?

This discussion is preserved as it was. New answers, comments, and votes are closed.