I’m developing a game, which apparently was going well, until I decided to play with one of my friends, we decided to transform our character by adding parts to their bodies, that’s when only I could see changes in my avatar and only he could see the change itself .
the script is inserted in the starterCharacterScripts and is a localscript
Local scripts will only affect the client while server script affects everyone. You can either Server → Client about this change or Client → Server so every can see this change. If the information doesn’t pass through the server, other players will not see it.
As, @Wizard101fire90 said, anything done in the client, would only show up for that specific client.
You would have to add the tails and ears from the server, by either welding them from a ServerScript (aka the normal script), no needt to use remote events.
When in a LocalScript, only you yourself can see it. When in a regular Script, everyone else can see it. Hence the prefix “Local”, which I like to think of as “Near”, and my player is near the camera.
local UserInputService = game:GetService("UserInputService")
--//Debounces
local punching = false
local ACTIVATED = false
local Player = game.Players.LocalPlayer
local Character = game.Workspace:WaitForChild(Player.Name)
local Humanoid = Character:FindFirstChild("Humanoid")
local Anim = Instance.new("Animation",script)
Anim.AnimationId = "rbxassetid://4755005087"
local Event = game.ReplicatedStorage.TransformEvent
--Event is a RemoteEvent
------------------------------------------------------------
local PunchTrack1 = Humanoid:LoadAnimation(Anim)
UserInputService.InputBegan:Connect(function(Input, IsTyping)
if IsTyping then return end
if Input.KeyCode == Enum.KeyCode.T and not punching then
Event:FireServer()
punching = true
PunchTrack1:Play()
wait(0.3)
Character.HumanoidRootPart.Anchored = true
wait(2.5)
Character.HumanoidRootPart.Anchored = false
Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 25
Character.Humanoid.JumpPower = Character.Humanoid.JumpPower + 80
elseif Input.KeyCode == Enum.KeyCode.T and punching==true and Humanoid.Parent:FindFirstChild("Hair")~=nil then
Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed - 25
Character.Humanoid.JumpPower = Character.Humanoid.JumpPower - 80
wait(20)
punching = false
end
end)
Yes, as @HilyrHere said, .Fired isn’t a valid event for RemoteEvent. Try to regularly check Output and change .Fired to .OnServerEvent, which I believe triggers something when someone does a certain thing in the server.