baum2409
(baum2409)
April 1, 2021, 1:57pm
#1
Hello i wont make a plugin but the animation id stays: rbxassetid://.
The Script:
local INSER_SERVICE = game:GetService("InsertService")
local ANIMATION_ID = nil
local GUI = script.Parent
local ANIMATION_DEFAULT_ID = "rbxassetid://507776043"
local ASSET_ID = 6596506418
local TEXT_BOX = script.Parent.TextBox
local TEXT_BUTTON = script.Parent.TextButton
TEXT_BUTTON.MouseButton1Down:Connect(function()
local ASSET = INSER_SERVICE:LoadAsset(ASSET_ID)
ASSET.PlayAnimationScript.Animation.AnimationId = "rbxassetid://"..TEXT_BOX.Text
ASSET.PlayAnimationScript.Parent = workspace
ASSET:Destroy()
end)
Idk why its not working…
What happens when you print the contents of TEXT_BOX.Text
, what does it display? Did you remember to write down an id of your choice?
Huh? How does it print that? What are you inputting into the Textbox?
baum2409
(baum2409)
April 1, 2021, 2:04pm
#5
It wont open for me for some reason, can you upload it somewhere or convert it to an mp4?
You’re getting an error there about Animation not being a valid memeber of workspace. I think you have an error in that PlayAnimationScript that’s causing it?
baum2409
(baum2409)
April 1, 2021, 2:16pm
#9
that for the plugin you can trag it to a dummy and it plays the animation
Jar_Dev
(Jar_Dev)
April 1, 2021, 2:17pm
#10
is this a script or a local script
Jar_Dev
(Jar_Dev)
April 1, 2021, 2:18pm
#11
Because if its a script it cant get the text inside the textbox if im right. You could maybe fire a remote event from local to server which carries the id in it ← this is how i made my admin gui.
baum2409
(baum2409)
April 1, 2021, 2:20pm
#12
i will test it. thanks for helping