Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trying to make a brick show around all players for the local player only, help? {SOLVED}

Please learn to read. I am literally saying I want only one client to see this/the client who pushes k. Not the other clients. Only the person who pushed K should see it.

The issue is the bricks are not showing!

So hey, I am looking for some help on making this brick appear around other players for the local player (Only the local player should see the bricks) This is in the local script:

local player = game.Players.LocalPlayer

local Using = false wait(1) game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.K and gameProcessedEvent == false then if Using == false then Using = true local V = Instance.new("Part") V.Name = "Detector" V.CanCollide = false V.BrickColor = BrickColor.new("Toothpaste") V.Transparency = 0.5 V.Material = "Neon" V.Shape = "Cylinder" V.Size = Vector3.new(4.5, 5, 4.5) local AV = Instance.new("SpecialMesh", V) for i,plr in pairs(game.Players:GetChildren()) do local ma = V:Clone() ma.Parent = plr.Character weld1(ma, plr.Character.HumanoidRootPart) end end end function weld1(Part1, Part2) local Ma = Instance.new("Weld", Part1) Ma.Part0 = Part1 Ma.Part1 = Part2 end

-- I really cannot figure out how to copy and paste my code in this new system :V I like the old one better.

4 comments

0

Please explain what the issue is

0

My bad

0

Found your problem. You never assigned a parent to V.

0

local ma = V:Clone() ma.Parent = plr.Character. This was already in it if you look at the loop. Thanks for trying to help and actually reading it. I solved it already though :P

2 answers

Instead of using Local Script Use Just a original Script!

3 comments

0

;-; im trying to make it show for the local player only.

0

O so you need to put a hitbox into it so the local player sees it only.

0

please, just stop you don't know what you are saying.

Hi there,

FilteringEnabled basically creates a barrier of non-replication from the client, simply having a part that has been created by a LocalScript in a client will not replicate to the server meaning only one Player will be able to see it, an old, non FilteringEnabled method is to place the object into the Camera, which also pretty much mimics the same effect.

3 comments

0

My tired head couldn't understand your question, if you want to make it so a LocalScript creates a part that all players can see, that's a no-no, you have to have a server sided script that handles a RemoteEvent that the client then fires when it needs to create a part.

0

Please learn to read. I am literally saying I want only one client to see this/the client who pushes k. Not the other clients. Only the person who pushed K should see it.

0

Don't tell us how to read, you're the one who doesn't know how to structure a sentence properly

This discussion is preserved as it was. New answers, comments, and votes are closed.