Varlixion
|
  |
| Joined: 11 Aug 2014 |
| Total Posts: 3596 |
|
|
| 28 May 2017 10:10 AM |
#code game.Workspace.MakePart = 'xd' function newpart(part) lul = Instance.new("Part") lul.parent = workspace end xd.touched:connect(newpart)
|
|
|
| Report Abuse |
|
|
|
| 28 May 2017 10:13 AM |
I know this is an easy concept to code, so I will try and give u brief help...
local part = game.workspace.Part
part.Touched:connect(function() print("Part Touched") end |
|
|
| Report Abuse |
|
|
|
| 28 May 2017 10:14 AM |
local lul = Instance.new("Part", game.workspace)
you do not need an argument...
function newpart() --make brick end
part.Touched:connect(newpart) |
|
|
| Report Abuse |
|
|
|
| 28 May 2017 10:20 AM |
Deb = 0
script.Parent.Touched:connect(function(Part)
local h = Part.Parent:FindFirstChild('Humanoid')
if h and Deb == 0 then Deb = 1
local p = Instance.new('Part', workspace)
p.CFrame = CFrame.new(Where you want it to spawn)
end
Deb = 0
-- try it.
|
|
|
| Report Abuse |
|
|
|
| 28 May 2017 10:29 AM |
createpart=function() local lul=Instance.new("Part",workspace) return lul end
local cf=CFrame.new
workspace.Part.Touched:Connect(function(hit) local player=game.Players[hit.Parent.Name] if player then local p=createpart() p.Anchored=true p.CFrame=cf(1,1,1) end end) |
|
|
| Report Abuse |
|
|