Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Other waves dont load And the script doesn't transform??

Asked by 6 years ago
Edited 6 years ago

The problem is That My script won't load fully it only Loads the rotate mesh that spins And it doesn't load the rest Of the other Mesh and breaks the The whole script Here

This is the Error Im getting :27: attempt to index field 'Parent' (a nil value)

27:line ----> wm31.Parent.CFrame = wm31.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.5,0)


--transform GroundWave5 = function() local HandCF = RootPart.CFrame * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) Colors = {"Dark blue", "Dark blue"}

local wave11 = Instance.new("Part", char)
wave11.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
wave11.Anchored = true
wave11.Name = "Wave"
wave11.CanCollide = false
wave11.Locked = true
wave11.Size = Vector3.new(1, 1, 1)
wave11.TopSurface = "Smooth"
wave11.BottomSurface = "Smooth"
wave11.Transparency = 0.35
wave11.CFrame = HandCF
wm31 = Instance.new("SpecialMesh", wave11)
wm31.MeshId = "rbxassetid://3270017"
coroutine.wrap(function()
for i = 1, 30, 1 do
wm31.Scale = Vector3.new(5 + i5.2, 5 + i5.2, 5)
wave11.Size = wm31.Scale
wave11.CFrame = HandCF
wave11.Transparency = i/30
wait(0.3)
end
wait()
wave11:Destroy()
end)()
wm31.Name = "Spin Script"
while true do
wm31.Parent.CFrame = wm31.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.5,0)
wait(0.01)
end
end
0
--transform GroundWave5 is connected to the script On the top meaning it starts from the Top Down to local wave11 ValparalSe 0 — 6y

Answer this question