here it is my script i am trying to make my own but the parts keep spawning in the same place
i am trying to make it like spike are coming out of the player with the spike staying in the same place but they stay in the same place they spectate
game.ReplicatedStorage.overse.OnServerEvent:Connect(function(player)
local folder = workspace:FindFirstChild("DebrisFolder") or Instance.new("Folder",workspace)
folder.Name = "DebrisFolder"
local char = player.Character
local root = player.Character.HumanoidRootPart
local position = Instance.new("BodyVelocity",root)
position.MaxForce = Vector3.new(99999999999999999,999999999999999999999,9999999999999999999)
position.P = 300
position.Velocity = root.CFrame.LookVector *1
game.Debris:AddItem(position,3)
local function spl()
local pike = game.Lighting.overseare:Clone()
sideval = .5
local side = math.random(-sideval,sideval)
sizex = .76
local extra = math.random(-1.1,1.1)
sizey = pike.Size.Y/4
pike.Parent = workspace
pike.CFrame = root.CFrame * CFrame.new(side,sizey,4 + extra)
end
for i = 1,50 do
spl()
end
end)
the other guys script
game.ReplicatedStorage.Ice.OnServerEvent:Connect(function(player)
local folder = workspace:FindFirstChild("DebrisFolder") or Instance.new("Folder",workspace)
folder.Name = "DebrisFolder"
local char = player.Character
local root = player.Character.HumanoidRootPart
local position = Instance.new("BodyVelocity",root)
position.MaxForce = Vector3.new(99999999999999999,999999999999999999999,9999999999999999999)
position.P = 300
position.Velocity = root.CFrame.LookVector *1
game.Debris:AddItem(position,3)
val = -3
sizez = 3
sezex = 10
sideval = .5
local function ice()
local extra = math.random(-1.1,1.1)
local shard = game.Workspace.Union:Clone()
local side = math.random(-sideval,sideval)
up = shard.Size.Y/4
local rotate = math.random(0,180)
local mro = math.random(99,100)
if mro == 99 then
sro = math.random(8/1)/10
uro = mro + sro
else
sro = math.random(1,3)/10
uro = mro + sro
end
local lean = math.random(4,4)/10
shard.Size = Vector3.new(sizez,sezex,sizez)
shard.Parent = folder
shard.CFrame = root.CFrame * CFrame.new(side,-up,val + extra)
shard.CFrame = shard.CFrame * CFrame.fromEulerAnglesXYZ(uro,rotate,0.4)
val = val -2
sideval = sideval +.5
game.Debris:AddItem(shard,3)
end
for i = 1,50 do
ice()
wait()
end
end)

4 comments
Maybe because you put 99999999999999999 in each vector.
nope that just stops the player from moving what i am trying to do it make parts come out the player in a line but 1 studs like part 1 stud and part again
just use math.huge
thats not the prob