Arrow Activation GUI with Mouse Input and Animation

Title: Arrow Activation GUI with Mouse Input and Animation

Description: This script creates an on-screen GUI with arrows that respond to the movement of the player’s mouse. The arrows represent different directions and change their appearance based on the mouse position. Feedback and critiques on the code are welcome.

Images:
Down
Down
Right
Right
Up
Up
Left
Left

Different Idle Animation are Played When user moves their mouse when sword is equipped and hold tab to move mouse around the screen.

Animation are in table which can be changed

local arrowAnimations = {
Down = “rbxassetid://13867954969”,
Left = “rbxassetid://0”,
Up = “rbxassetid://11455891166”,
Right = “rbxassetid://13868033302”
}

This Code is in 26-31.
Which can found on Local Script
Main
and other code
Other2
Other
are there for welding sword, changing weld and creating Equipped Value in player character

Update

Added Lock on Equip Local Script Which mean Player will automatically lock on to nearest Target and Character Rotates
Used Highlight for that

Player when not near the Target
LockonNotNear

Player when near the Target
LockonNear

Noticed how Outline Transparency Decreased to 0

Added Simple Script for Attack Animation


Up

local UpAttacks = {
Animation:WaitForChild(“Up”),
}


Down

local DownAttacks = {
Animation:WaitForChild(“Down”),
}


Right

local RightAttacks = {
Animation:WaitForChild(“Right”),
}


Left

local LeftAttacks = {
Animation:WaitForChild(“Left”),
}

You can Add other animations to the table

Links:
Reference:
https://twitter.com/ZeeoStudio/status/1660887031474700288

Place: Sword Direction Test - Roblox
My attempt was to create something similar to the reference
all the things in my code are easy to understand for any level

Game Passes Donation :smiley:
10: Donation
100: Hundred

Twitter:

Removed The Video because it was laggy instead add some images

why is the video you recorded so laggy? is it from the script or pc issue?

my laptop is garbage and not suitable for recording can you test it and let me know if it is laggy for you or not ill try to optimize it

1 Like