Okay so i recently got a Gaster Blaster System working and ive been wondering how to make a zone that executes the code as long as you are inside the zone
Something like this
and this is the Gaster Blaster System ive done so far
Heres the code
game:GetService(‘Players’).PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoidRootPart = character:WaitForChild(‘HumanoidRootPart’)
while true do
local modelpositionpart = Instance.new('Part')
modelpositionpart.Massless = true
modelpositionpart.CanCollide = false
modelpositionpart.Transparency = 1
modelpositionpart.Parent = humanoidRootPart
modelpositionpart.CFrame = CFrame.new(humanoidRootPart.Position.X,humanoidRootPart.Position.Y+1.5,humanoidRootPart.Position.Z-30) * CFrame.Angles(math.rad(180),0,3.15)
local weldconstraint = Instance.new('WeldConstraint')
weldconstraint.Parent = humanoidRootPart
weldconstraint.Part0 = humanoidRootPart
weldconstraint.Part1 = modelpositionpart
repeat wait(1)
local model = game:GetService('ServerStorage'):WaitForChild('Blaster'):Clone()
model.Parent = workspace
model:SetPrimaryPartCFrame(modelpositionpart.CFrame)
wait(5)
model:Destroy()
until false
end
end)
im not an expert at scripting yet, and from what ive seen i need to use Regions and something else but what im asking here is, if you guys have any tips on doing this (im not asking for code)
any tutorials any youtube videos that could help with this, i would really appreciate it, thanks.