#i need help with my client script
28 messages · Page 1 of 1 (latest)
** You are now Level 3! **
teamName -> roletext
also please just paste ur code
i can't read it from ur images
```lua
-- copy paste this
click on the little pen icon and rename file to .lua
and u can send it
ye
local highlight = nil
local mousedOverCharacter = nil
RunService.RenderStepped:Connect(function()
local mousePos = UserInputService:GetMousePosition()
local ray = workspace.CurrentCamera:ViewportPointToRay(mousePos.X, mousePos.Y)
local rcr = workspace:Raycast(ray.Origin, ray.Direction * 100)
if not rcr then highlight:Destroy() return end
local hum = rcr.Instance.Parent:FindFirstChild("Humanoid")
if not hum then return end
mousedOverCharacter = rcr.Instance.Parent
if not highlight then
highlight = Instance.new("Highlight")
end
highlight.Parent = mousedOverCharacter
end)
use this instead
wherever you want just get rid of your old code that does highlight stuff
er
specifically get rid of the mousemove one
oh
replace there
fixed
delete that line saids Mouse.Move
ye
your old code cloned a highlight
so if u want it to do that
replace instance.new
but rest is up to you
godspeed
you can
** You are now Level 4! **