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

it works on stuido and game but only the local player.how do i fix?

Asked by 6 years ago

this is a local script in starter pack

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local we = false

mouse.KeyDown:Connect(function(key) -- lol i tryed keyheld ;-;
    key = key:lower()
    if key == "q" then
    if we == false then

        local x = Instance.new("Part",workspace)
        x.Shape = "Ball"
        x.BrickColor = BrickColor.new("Cyan") 
        x.Transparency = .5
        x.BottomSurface = "Smooth"
        x.TopSurface = "Smooth"
        x.CanCollide = false
        x.Anchored = false
        x.CFrame = player.Character.LowerTorso.CFrame * CFrame.new(0,0,-6)
        local v = Instance.new("BodyVelocity",x)
        v.Velocity = player.Character.Head.CFrame.lookVector * 90 --mouse.Hit.lookVector* 90
        v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
        local clone = game.Lighting.water:Clone()
        clone.Parent = x
    x.Name = "flame"

        local boo = script.Parent.dmg.water:Clone()
            boo.Disabled = false
        boo.Parent = x
        wait(2)
    x:Remove()
    end
        end
    end)
0
Use remote events Leamir 3138 — 6y
0
dose not work helleric -3 — 6y
0
Do you know how to use remote events? mixgingengerina10 223 — 6y
0
nope. i want all the player to see the water ball but only the local player can helleric -3 — 6y
0
Is FE switched on? While it is on, changes made on the client do not replicate to the server unless you allow specific changes to replicate using remotes. Garmadon455 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Because you have filtering enabled, any changes you make in a local script are not visible to anyone else other than that user.

Two Solutions:

1) In the Explorer window, click on Workspace to view its properties. There is a row labeled 'FilteringEnabled' with a checked box. Uncheck it.

2) You'll want to have a remoteevent and a event listener on the server so that the local script can fireServer, and then the server can change the character.

Note: The first option makes your game susceptible to hacking.

0
i want second position but idk how to use remote envents :( helleric -3 — 6y
Ad

Answer this question