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

Why is this script just putting a ki blast in the middle of the map?

Asked by 7 years ago
01kblast = script.Parent
02 player = game.Players.LocalPlayer
03mouse = player:GetMouse()
04function fireblast()
05    local ki = Instance.new("Part", workspace)
06    game.Debris:AddItem(ki,4)
07    ki.Shape = ("Ball")
08    ki.Material = ("Neon")
09    ki.Size = Vector3.new(1,1,1)
10    ki.TopSurface = ("Smooth")
11    ki.BottomSurface = ("Smooth")
12    ki.Transparency = (0.6)
13    ki.BrickColor = BrickColor.new("Toothpaste")
14    ki.Anchored = true
15    ki.CanCollide = false
View all 34 lines...

2 answers

Log in to vote
0
Answered by 7 years ago

It doesn't look like you assign its Position or CFrame at all. You can do that by doing something like this:

01kblast = script.Parent
02 player = game.Players.LocalPlayer
03 --[[ new thing woo --]]
04local character = player.Character
05if not character then
06character = player.CharacterAdded:wait()
07end
08character = player.Character
09 --[[ new thing woo --]]
10mouse = player:GetMouse()
11function fireblast()
12    local ki = Instance.new("Part", workspace)
13    game.Debris:AddItem(ki,4)
14    ki.Shape = ("Ball")
15    ki.Material = ("Neon")
View all 35 lines...
Ad
Log in to vote
0
Answered by 7 years ago

Have you set the KiBlast.Position? The position should be the character's position plus a few bits foward so it comes from the front.

Also, if this is a DBZ game, Good luck!

Answer this question