I’m wanting to edit the default R6 “Animate” script that every player has when they load in.
- I’ve already taken the original script from the character and put it into the “StarterCharacterScripts”
- Wanting to make the script compatible with a module script in “ReplicatedStorage”
Animate Script
-- humanoidAnimatePlayEmote.lua
local replicated = game:GetService("ReplicatedStorage")
local magicLib = require(replicated:WaitForChild("MagicLibrary"))
local player = game.Players.LocalPlayer
local playerMagic = player:WaitForChild("Magic")
local magicData = magicLib[playerMagic.Value]
local playerAnims = magicData.Movement
--Original Script
local animNames = {
idle = {
{ id = playerAnims.Idle, weight = 9 },
{ id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
},
walk = {
{ id = playerAnims.Walk, weight = 10 }
},
run = {
{ id = playerAnims.Run, weight = 10 }
},
jump = {
{ id = playerAnims.Jump, weight = 10 }
},
fall = {
{ id = playerAnims.Fall, weight = 10 }
},
climb = {
{ id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
},
sit = -- Original Script
Module Script
local MagicLib = {
["Fire Magic"] = {
Name = "Fire Magic";
Description = nil;
Movement = {
Idle = 80511069809894,
Walk = 116156611636303,
Run = 71475010221682,
Jump = 89563462347179,
Fall = 108018389118675,
},
},
} return MagicLib
I’ve already tried to change the Idle, Walk, Run, etc. from the module script to be formatted “http://www.roblox.com/asset/?id=___” and “rbxassetid://___”, but they did not work.
Explorer Layout
Any help is greatly appreciated.
