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

Is this a glitch or is my script wrong Whenever Im killed by this script?

Asked by 5 years ago
local remotes = game:GetService("ReplicatedStorage"):WaitForChild('Motes'):WaitForChild('1')



remotes.OnServerEvent:Connect(function(player,Key,Mouse,Handle)

P = Instance.new("Part")

P.Shape = 'Ball'

P.Parent = workspace

P.CFrame = Handle.CFrame * CFrame.new(0,1.5,4.5)

P.CFrame = CFrame.new(P.Position,Mouse)

P.BrickColor = BrickColor:Random()

P.CanCollide = false

--

Bv = Instance.new("BodyVelocity")

Bv.Parent = P

Bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)

Bv.Velocity = P.CFrame.lookVector * 45



P.Touched:Connect(function(touch)

if touch:IsA("BasePart") and touch.Parent ~= player.Character and touch.Parent.Parent ~= player.Character then

Explosion = Instance.new("Explosion")

Explosion.Parent = P

Explosion.Position = P.Position

game.Debris:AddItem(Explosion,1.5)

end

end)



end)

So this is my script and you know how the explosion at the end will kill you I don't spawn at position 0,0,0 instead spawn somewhere like 100,0,0 which means since my map is a baseplate I get spawn killed since I fall off the baseplate. Is this a glitch? or my script or physics. You can test this out if you want btw.

By the way after you die from this one time it keeps happening which means you get spawn killed

0
Line 41: Explosion.Position = touch.Position GetGlobals 343 — 5y
0
Well the shape part won't work since you have to do: P.Shape = Enum.PartType.Ball DogHouseForMe 0 — 5y
0
yeh its prob a problem with ur script why th does it look like a half torn bar code TheluaBanana 946 — 5y

Answer this question