my script clones the arm, and the clone of the arm changes colors to the color blue.
this script is supposed to make ur arm look blue, however when it is used only YOU can see it.
what seems to be the error? or what should i be adding? (this is an update to a previous question, this is the same script.)
local UserInputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:wait()
local used = false
-- body parts
local LUarm = Character:WaitForChild("LeftUpperArm")
local CLUarm = LUarm:Clone()
-- function
local function onInputBegan(input,gameProcessed)
if input.KeyCode == Enum.KeyCode.E and used == false then
used = true
print("success")
CLUarm.CanCollide = false
CLUarm.Anchored = false
CLUarm.Color = Color3.new("Electric blue")
CLUarm.Material = "Foil"
CLUarm.Size = Vector3.new(1.01, 1.2, 1.01)
CLUarm.Parent = LUarm
player.Character.Humanoid.MaxHealth = 500
player.Character.Humanoid.Health = 500
elseif
used == true then return end
end
UserInputService.InputBegan:connect(onInputBegan)

3 comments
You need to use remote events so it can be applied to everyone
in this situation, how would I use a remote event? because this script is using the player and character variable and usually scripts cannot access the local player
nvm i somewhat got it