After i spent 4 days of using Tween, i just moved to start scripting tool
also i’ve been stuck with this process where i have to make the frame expands (simply just making it scale)
a problem is using UDim2 didn’t tend to work because i’m too dumb for this and i’ve asked my friend but he recommends me to use Spring which is not what i want to, i deleted the line where i put it on
Here’s the code so far
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local Tool = script.Parent
local GUI = Tool:WaitForChild("CrosshairGui")
local equipped = false
local mouse = player:GetMouse()
Tool.Equipped:Connect(function()
equipped = true
GUI:Clone().Parent = player.PlayerGui
end)
Tool.Unequipped:Connect(function()
equipped = false
local dot = player.PlayerGui:FindFirstChild("CrosshairGui")
if dot then
dot:Destroy()
end
end)
mouse.Button2Down:Connect(function()
if equipped then
print("Holding")
end
end)
mouse.Button2Up:Connect(function()
if equipped then
print("Ended")
end
end)
(Screenshot with instances inside tool)
Currently using “GetMouse()”
is there a way to do it WITHOUT using spring???