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
 

Re: explosion on click

Previous Thread :: Next Thread 
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
11 Jan 2016 01:51 PM
can anyone please tell me how I can make an explosion go where you click?

I have this script, but it wont work:

local player =game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Button1Down:connect(function()
print("hi")
local explosion = Instance.new("Explosion",workspace)

explosion.Position = Vector3.new(mouse.Hit.p)
end)
Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
11 Jan 2016 01:52 PM
what did the output say
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
11 Jan 2016 01:53 PM
nothing

but when I made it print the position of the explosion, it said 0,0,0 no matter where I clicked
Report Abuse
vastqud is not online. vastqud
Joined: 10 Sep 2011
Total Posts: 2464
11 Jan 2016 01:53 PM
well it said "hi" as well because I made it print that...
Report Abuse
twister1976 is not online. twister1976
Joined: 17 Sep 2010
Total Posts: 2250
11 Jan 2016 02:52 PM
local player =game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Button1Down:connect(function()
local explosion = Instance.new("Explosion")
explosion.Position = Vector3.new(mouse.Hit.p)
explosion.Parent = game.Workspace
end)

Try this out?

If money grew on trees... It would be as valuable as leaves. | Twitter: @TwisterRBLX


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