Hello! I’ve been trying to make this script that basically gives you a Halo, similar as in ToH;
I’m trying to make it stay up on the air without anchoring it (Because then it wouldn’t move with the player) and I have been trying many other scripts, which broke it.
Current script: (Which works, but doesn’t keep the halo on the air.)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
local Halos = ServerStorage:WaitForChild("Halos")
local Halo = Halos:WaitForChild("TestingHalo")
local HaloEvent = ReplicatedStorage:WaitForChild("HaloEvent")
HaloEvent.OnServerEvent:Connect(function(Player)
if Player.Character then
Halo.PrimaryPart = Halo:FindFirstChild("Handle")
Halo:Clone().Parent = Player.Character
Halo.Handle.Position = Player.Character.Head.Position + Vector3.new(0, 2, 0)
Halo.Handle.Anchored = false
local weld = Instance.new("Weld")
weld.Part0 = Halo.Handle
weld.Part1 = Player.Character.Head
local weld = Instance.new("Weld")
weld.Part0 = Halo.Handle
weld.Part1 = Player.Character.Head
local weld = Instance.new("Weld")
weld.Part0 = Halo.Handle
weld.Part1 = Player.Character.Head
else
print("Unable to find "..Player.Name.."'s head")
end
end)
here is a script that I have modified a bit I have not yet tested but I think it’s good
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local ServerStorage = game:GetService(“ServerStorage”)
local Halos = ServerStorage:WaitForChild(“Halos”)
local Halo = Halos:WaitForChild(“TestingHalo”)
local HaloEvent = ReplicatedStorage:WaitForChild(“HaloEvent”)
HaloEvent.OnServerEvent:Connect(function(Player)
if Player.Character then
Halo.PrimaryPart = Halo:FindFirstChild(“Handle”)
here is the script.
I tried to convert myself like the one you presented
local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local ServerStorage = game:GetService(“ServerStorage”)
local Halos = ServerStorage:WaitForChild(“Halos”)
local Halo = Halos:WaitForChild(“TestingHalo”)
local HaloEvent = ReplicatedStorage:WaitForChild(“HaloEvent”)
HaloEvent.OnServerEvent:Connect(function(Player)
if Player.Character then
Halo.PrimaryPart = Halo:FindFirstChild(“Handle”)
yes but you could just create a copy of the game so that i fix it to you “it doesn’t bother me i have nothing to do” more if you don’t want to share your game “i understand” will have to show me its contents? because I can’t really connect the scriptable links