scripting help
i have been working a tool idle script(like a script that displays the idle animation of a tool), my problem is that when i use another item, while the other one is equipped while it is idle, the other respective weapon would have the idle animation as well, despise it not having a script/animation (the script, local Tool = nil local animScript = nil script.Parent.Equipped:connect(function() Tool = script.Parent animScript = Tool.Parent:WaitForChild("Animate") animScript:WaitForChild("toolnone"):WaitForCh ild("ToolAnim") animScript.tool.ToolNoneAnim.AnimationId = "rbxassetid://11225826802" end) script.Parent.Unequipped:connect(function() animScript:WaitForChild("toolnone"):WaitForCh ild("ToolAnim") animScript.tool.ToolAnim.AnimationId = "http :// www .roblox .com/asset/? id=000000(this is intentional)" end
|
| All times are GMT -4. The time now is 15:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.