Before we start if you don't know what one is look here
https://developer.roblox.com/api-reference/class/CylinderHandleAdornment
OK now we know what we are talking about ive CylinderHandleAdornments them to emulate raytracing for an FPS as you can see here
local ray2 = Ray.new(Muzzle.CFrame.p,Muzzle.CFrame.lookVector*2) local visualRay = Instance.new("CylinderHandleAdornment", game.Workspace.Terrain) visualRay.Height = ray2.Direction.magnitude -- or 2 local center = ray2.Origin + ray2.Direction / 2 visualRay.AlwaysOnTop = false visualRay.CFrame = CFrame.new(center, center + ray.Direction) visualRay.Color3 = Color3.new(1,.65,.6) visualRay.Radius = 0.1 visualRay.Transparency = 0 visualRay.Adornee = game.Workspace.Terrain spawn(function() while rs:wait() do visualRay.CFrame = visualRay.CFrame*CFrame.new(0,-.1,-10) game:GetService("Debris"):AddItem(visualRay,.1)
So basically i want to know how i can Replicate these to the server to give other players a visual of if they are being shot
Thanks