Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago

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.

0
Please explain what the issue is gullet 471 — 5y
0
My bad XX_Doggoa 24 — 5y
0
Found your problem. You never assigned a parent to V. DeceptiveCaster 3761 — 5y
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 XX_Doggoa 24 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

Instead of using Local Script Use Just a original Script!

0
;-; im trying to make it show for the local player only. XX_Doggoa 24 — 5y
0
O so you need to put a hitbox into it so the local player sees it only. DuckyRobIox 280 — 5y
0
please, just stop you don't know what you are saying. XX_Doggoa 24 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

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.

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. Ashley_Phantom 372 — 5y
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. XX_Doggoa 24 — 5y
0
Don't tell us how to read, you're the one who doesn't know how to structure a sentence properly Ashley_Phantom 372 — 5y

Answer this question