Is there a GUI plugin I don’t know of? Because I’m trying to make a crosshair and it’s awfully aligned. Here’s the image. I also wanna scale the bottom lines by it’s X axis, and the left and right ones by it’s Y axis.
You should create a singular frame and have it centered in the middle of the screen. You can then create the other four frames and position them relative to the centered frame rather than the client’s current screen.
You can change the player mouse to the crosshair, which would then (if I interpreted the dillema correctly) get the same effect, and be easier. You could do something like:
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "rbxasset://SystemCursors/Cross"--That is a crosshairs icon by roblox
In the FE gun kit, the crosshair is made by frames, and dissapears when you have the scope or zoom in, how am I supposed to replicate that but with a image? It also spreads a bit when you shoot.
Okay, here is what I would do. Instead of changing the mouse, Create an Image button. Change the picture to “rbxasset://SystemCursors/Cross”. Then, inside that gui, you can have a local script doing:
local CurrentMouse = game.Players.LocalPlayer:GetMouse()
local function move()
crossFrame.Position = UDim2.new(0, CurrentMouse.X, 0, CurrentMouse.Y) -- crossFrame is your frame
end
game:GetService("RunService"):BindToRenderStep("MoveMouseGui", 1, move)
Then, when they scope, just make the frame invisible
Just do the opposite tween when they stop. All you would have to do is check what key the player was pressing, and call those effects. That should solve your problem, and be A LOT more maneagable than the FE gun scripts. Hope this helps
It’s been a month, and that won’t work. I’m using FE gun kit and I want the custom crosshair to function like the built in one. But it’s all good I had it figured it out.
I forgot about this post, but I realised you can change the crosshair size in the settings, also the crosshair is made by frames, and not an image. Adding an ImageLabel would most likely break the system. It’s a gun system, it’s fragile.