ethanlaj
|
  |
| Joined: 17 Nov 2015 |
| Total Posts: 922 |
|
| |
|
|
| 26 Jan 2017 12:05 PM |
A client-sided part eh? Well put this in a local script:
local part = instance.new("Part", workspace.CurrentCamera) --I think it's this.
Or if FE is on, just create a part in local script.
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
ethanlaj
|
  |
| Joined: 17 Nov 2015 |
| Total Posts: 922 |
|
|
| 26 Jan 2017 12:11 PM |
| That didn't work, I put the local script in the Workspace, correct? |
|
|
| Report Abuse |
|
|
ethanlaj
|
  |
| Joined: 17 Nov 2015 |
| Total Posts: 922 |
|
|
| 26 Jan 2017 12:12 PM |
A local script in the Workspace:
local part = game.ReplicatedStorage.Part:Clone() part.Parent = workspace.Camera |
|
|
| Report Abuse |
|
|
ethanlaj
|
  |
| Joined: 17 Nov 2015 |
| Total Posts: 922 |
|
|
| 26 Jan 2017 12:12 PM |
local part = game.ReplicatedStorage.Part:Clone() part.Parent = workspace.CurrentCamera
* |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 26 Jan 2017 12:13 PM |
You don't put anything in the Camera.
Use FE and a local script
Instance.new('Part',workspace)
boom. done.
|
|
|
| Report Abuse |
|
|
|
| 26 Jan 2017 12:13 PM |
LocalScripts do not work in Workspace. Unless they are parented to something that uses the client.
Place the LocalScript in something like ReplicatedStorage or in StarterPlayerScripts.
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
ethanlaj
|
  |
| Joined: 17 Nov 2015 |
| Total Posts: 922 |
|
|
| 26 Jan 2017 12:20 PM |
wait (5) if script.Parent.Parent:GetRankInGroup(2911975) >= 3 then local part = game.ReplicatedStorage.Part:Clone() part.Parent = workspace.CurrentCamera part.CanCollide = false else local part = game.ReplicatedStorage.Part:Clone() part.Parent = workspace.CurrentCamera end
This is all in the LocalScript, it doesn't work. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 26 Jan 2017 12:27 PM |
omfg
workspace.FilteringEnabled = true
--local script
local player = game.Players.LocalPlayer local char = player.Character or player.CharacterAdded:wait() local part = game.ReplicatedStorage:WaitForChild('Part')
if player:GetRankInGroup(2911975) >= 3 then local part = part:Clone() part.Parent = workspace part.CanCollide = false else part:Clone().Parent = workspace end
|
|
|
| Report Abuse |
|
|
ethanlaj
|
  |
| Joined: 17 Nov 2015 |
| Total Posts: 922 |
|
|
| 26 Jan 2017 01:39 PM |
| ^ FE will break all of my scripts... |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2017 03:03 PM |
Put the script in PlayerGui, StarterPlayerScripts, or StarterCharacterScripts. You never put localscripts in workspace or in workspace's descendants (except player characters or tools within characters). It's useless to do so.
|
|
|
| Report Abuse |
|
|