|
| 12 Aug 2015 02:51 PM |
So, I am trying to use renderstepped in my script but nothing happens when the player joins, nothing appears.
local diamond = game.ServerStorage.Part local r = game:GetService'RunService'
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) local clone = diamond:Clone() clone.Parent = player.Character clone.CanCollide = false r.RenderStepped:connect(function() clone.CFrame = player.Character.Head.CFrame*CFrame.new(0,2,0) end) end) end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 12 Aug 2015 03:44 PM |
| errr you must be new to this |
|
|
| Report Abuse |
|
|
Voidion
|
  |
| Joined: 01 Aug 2011 |
| Total Posts: 2668 |
|
|
| 12 Aug 2015 03:52 PM |
| I just tested your code in studio and it worked for me. Are you 100% sure the object in ServerStorage is called Part or this code is in a script in workspace? |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 04:07 PM |
Yes, it's also a local script, I think it's supposed to be that because you can't call services with a regular script..
Trader/Scripter/Builder/Clothing Designer |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 04:09 PM |
Nvm, I changed it to regular... sorry.
Trader/Scripter/Builder/Clothing Designer |
|
|
| Report Abuse |
|
|