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
Right
Up
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
and other code
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
Player when near the Target
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
10: Donation
100: Hundred
Twitter:
Removed The Video because it was laggy instead add some images