Ok so I have a local script that plays an animation then calls a remote event inside the local script. The remote event starts a server script also inside the local script which anchors every body part of the player then I have an instance that is supposed to add a part in the player's torso but the part does not show not even in the character torso.
Local Script:
local player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local CreepyAnim = Instance.new("Animation")
CreepyAnim.AnimationId = "rbxassetid://05095167054"
local remoteEvent = script:WaitForChild("RemoteEvent")
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.L then
local loadanim = player.Character.Humanoid:LoadAnimation(CreepyAnim)
loadanim:Play()
wait(1)
remoteEvent:FireServer(player)
end
end)
Server Script inside the local script activated by the remote event:
script.Parent.RemoteEvent.OnServerEvent:Connect(function(Player)
Player.Character.Head.Anchored = true
Player.Character.UpperTorso.Anchored = true
Player.Character.LowerTorso.Anchored = true
Player.Character.RightUpperArm.Anchored = true
Player.Character.RightLowerArm.Anchored = true
Player.Character.RightHand.Anchored = true
Player.Character.LeftUpperArm.Anchored = true
Player.Character.LeftLowerArm.Anchored = true
Player.Character.LeftHand.Anchored = true
Player.Character.RightUpperLeg.Anchored = true
Player.Character.RightLowerLeg.Anchored = true
Player.Character.RightFoot.Anchored = true
Player.Character.LeftUpperLeg.Anchored = true
Player.Character.LeftLowerLeg.Anchored = true
Player.Character.LeftFoot.Anchored = true
print("ANCHORED!")
local Beam = Instance.new("Part")
Beam.Parent = Player.Character.UpperTorso
Beam.Shape = "Cylinder"
Beam.Orientation = Vector3.new(0, 0, 90)
Beam.Size = Vector3.new(4,1,1)
print("Beam Initiated")
end)
Thank You in advance

3 comments
Where is the local script stored?
starter pack
You don't have to fire the player. FireServer() does that automatically by the way.