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 » Scripting Helpers
Home Search
 

Re: Still not Working (hit function) LocalScript in Part

Previous Thread :: Next Thread 
DailyTime is not online. DailyTime
Joined: 09 Nov 2013
Total Posts: 285
29 Nov 2013 03:17 PM
It is suposed to make a decal and put it in the tool but it is not putting it in the part and the decal shows on the Tool Handle...

Here is what i have

function touch(hit)
local pizza = game.Players.LocalPlayer.Backpack("Pizza Dough")
if hit.Name == "Pizza Dough" then
local decal = Instance.new("Decal")
decal.Parent = game.Players.LocalPlayer.Backpack:findFirstChild("Pizza Dough").Handle
decal.Texture = "http://www.roblox.com/asset/?id=6868077"
end
pizza.Name = "Saucy Pizza"
end

script.Parent.Touched:connect(touch)
Report Abuse
N8X is not online. N8X
Joined: 15 Nov 2013
Total Posts: 1665
29 Nov 2013 03:20 PM
If it's localscript in the part then it will think the server is the client and it will error,
Report Abuse
DailyTime is not online. DailyTime
Joined: 09 Nov 2013
Total Posts: 285
29 Nov 2013 03:22 PM
Then what do i do?
Report Abuse
DailyTime is not online. DailyTime
Joined: 09 Nov 2013
Total Posts: 285
29 Nov 2013 03:32 PM
...
Report Abuse
DailyTime is not online. DailyTime
Joined: 09 Nov 2013
Total Posts: 285
29 Nov 2013 03:44 PM
giu
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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