Animations not loading when calling "require()" in script builders?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

So im trying to make a module which will turn you into a morph when calling “require(0000)”.

  1. What is the issue? Include screenshots / videos if possible!

But for some reason when you require the module from a game you dont own(Example void script builder in this case where im trying to require it from). It kinda works. It transforms you and everythin. But it wont load the animations. Just the default Roblox animations?

Example 1(Requiring from my game)

Example 2(Requiring in void script builder)

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I found something that talked about its due to Roblox security. But i wanted to ask here anyways to be sure

Inside the module:

local module = {}

local M = script:WaitForChild("MORPH")


function module:TRANSFORM(NAME)
	if game.Players:FindFirstChild(NAME) then
		local PLAYER = game.Players:FindFirstChild(NAME)
		
		local CL = M:Clone()
		PLAYER.Character = CL
		CL.Parent = game.Workspace
	end
end

return module

Any help would be really helpful since ive been trying to solve this for 1 week now :smiley:

1 Like

Could you explain it a bit more clearer? Also do you have any errors?

1 Like

Are you parenting the module script? If I remember correctly, it has to be parented before it can be required.

If its on the server, you can use ServerStorage, if on the client, ReplicatedStorage, or the player’s Character.

Also check the security of your place, there are some options to allow outside requires, etc… Make sure you have the security set up correctly.

1 Like

The animations will only work if the game owner has the animation owned in their inventory or it’s owned by Roblox. VSB scripts and such uses scripting; cframe and tweening to animate as a workaround

1 Like

Ohhh… oof. I think i’ll take a break from the development on the module then Xd