generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

touching to create a new part

Previous Thread :: Next Thread 
Varlixion is not online. 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
Nuclear_Energy is online. Nuclear_Energy
Joined: 21 Jul 2013
Total Posts: 1380
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
Nuclear_Energy is online. Nuclear_Energy
Joined: 21 Jul 2013
Total Posts: 1380
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
ForceCyber is not online. ForceCyber
Joined: 06 May 2015
Total Posts: 1086
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
chexyalani is online. chexyalani
Joined: 26 Mar 2017
Total Posts: 694
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image