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

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

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)

5 comments

0

Use remote events

0

dose not work

0

Do you know how to use remote events?

0

nope. i want all the player to see the water ball but only the local player can

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.

1 answer

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.

1 comment

0

i want second position but idk how to use remote envents :(

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