before you to tell me to research, i have
ive even asked AI to make a script
nothing works
ive tried MoveTo() and PivotTo(), pivot to changes the models coordinates in code but does nothing and moveto does nothing flat-out
-- Settings
local Spread = 12
local Range = 4
-- Initial Setup
ColorBleed = Instance.new("Model")
ColorBleed.Name = "ColorBleed"
ColorBleed.Parent = workspace
-- Simlight Setup
local Simlight = Instance.new("Part")
Simlight.Name = "Simlight"
Simlight.Transparency = 1
Simlight.Size = Vector3.one
Simlight.CanCollide = false
Simlight.CanTouch = false
Simlight.CanQuery = false
Simlight.Anchored = true
local PointLight = Instance.new("PointLight")
PointLight.Range = 6
PointLight.Parent = Simlight
-- Light Placement
game.Players.LocalPlayer.CharacterAdded:Connect(function(character)
local Char = game.Players.LocalPlayer.Character
local PlayerLocus = 8*Vector3.new(
math.round(Char.HumanoidRootPart.Position.X/8),
math.round(Char.HumanoidRootPart.Position.Y/8),
math.round(Char.HumanoidRootPart.Position.Z/8)
)
for i = -(Spread*Range)-(Spread/2), (Spread*Range)+(Spread/2), Spread do
for j = -(Spread*Range)-(Spread/2), (Spread*Range)+(Spread/2), Spread do
for k = -(Spread*Range)-(Spread/2), (Spread*Range)+(Spread/2), Spread do
local clone = Simlight:Clone()
clone.Position = PlayerLocus + Vector3.new(i,j,k)
clone.Parent = ColorBleed
end
end
end
end)
ColorBleed.PrimaryPart = ColorBleed:FindFirstChild("Simlight")
ColorBleed:MoveTo(Vector3.new(0,100,0))
-- Light Running
while true do
task.wait()
end
here's all of my code, once you get to me trying to set a primary part you get to where i just dont know whats happening anymore, everything else works and all the code seems to run
** You are now Level 2! **