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

Why is my model only visible to me but not others?

Asked by 6 years ago
Edited 6 years ago

I'm trying to make a model that follows me, everything works well. Except after I get the model, I can see the model, but after I test the game out, other people except me can't see the model I moved in to my character.

repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Tool = script.Parent 
local player = script.Parent.Parent
local ws = script.WhiteSnake2
local stand = ws:Clone()
local weld = stand.HumanoidRootPart.LocalScript
local humanroot = stand.HumanoidRootPart

stand.Parent = player


local bp = Instance.new("BodyPosition")



Tool.Equipped:connect(function(Mouse)
        Mouse.Button1Down:connect(function()

            wait(0.95)

weld.Disabled = false

        script.Parent:Destroy()
    end)
end)


the weld script is for the model that is welded behind me and it's working well, the ws is the model and it is also working well, but I'm not sure what caused to model to be invisible to everyone else.

0
cloning the model with a local script will not replicate with filter enabled, you need to use a script via a remote event Vulkarin 581 — 6y
0
thank you very much! Jotaro71 0 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

Hey Jotaro71,

The reason this is probably happening is because you most likely have FilteringEnabled on and are making the model from the LocalScript. When you have FilteringEnabled, things changed from the client only affects the client. You need to make either FilteringEnabled false or use RemoteEvents/RemoteFunctions to make the model.

Hope I helped and have a nice day.

~~ KingLoneCat

0
ahh i see thank you very much Jotaro71 0 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

It's because you're using a Local Script, let me explain why that happens: There's two sides: Server and Client.

The Server side replicates everything that happens in it to the Clients (Players). However, the Client side doesn't replicate the events happening in it to the others.

To make things simpler, The Server copies the game's place to the Clients every frame, but Client doesn't change the server, Just the player's copied place.

I'd recommend using Remote Events and Remote Functions for this issue, The wiki should help: http://wiki.roblox.com/index.php?title=Remote_Events_and_Functions

0
also very helpful, thank you for helping! Jotaro71 0 — 6y

Answer this question