sIendytubble

fling stop sign

Jun 15th, 2020 (edited)
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.80 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. if owner.Name == "Erik_2013death" or owner.Name == "g0x21B" then
  137. mas = game.Players.LocalPlayer.Backpack
  138. Tool0 = Instance.new("Tool")
  139. Tool0.CanBeDropped = true
  140. Part1 = Instance.new("Part")
  141. SpecialMesh2 = Instance.new("SpecialMesh")
  142. Part3 = Instance.new("Part")
  143. Decal4 = Instance.new("Decal")
  144. Decal5 = Instance.new("Decal")
  145. BlockMesh6 = Instance.new("BlockMesh")
  146. CFrameValue7 = Instance.new("CFrameValue")
  147. Weld8 = Instance.new("Weld")
  148. Tool0.Name = "stop"
  149. Tool0.Parent = mas
  150. Tool0.Grip = CFrame.new(0, -4, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  151. Tool0.GripPos = Vector3.new(0, -4, 0)
  152. Part1.Name = "Handle"
  153. Part1.Parent = Tool0
  154. Part1.CFrame = CFrame.new(35.5958214, 7.466609, -134.840622, -0.662298739, -0.0162105355, 0.749064386, 6.58125927e-08, 0.999765873, 0.0216360372, -0.749239743, 0.0143295703, -0.662143707)
  155. Part1.Orientation = Vector3.new(-1.24000001, 131.479996, 0)
  156. Part1.Position = Vector3.new(35.5958214, 7.466609, -134.840622)
  157. Part1.Rotation = Vector3.new(-178.130005, 48.5099983, 178.600006)
  158. Part1.Size = Vector3.new(1, 8, 1)
  159. Part1.BottomSurface = Enum.SurfaceType.Smooth
  160. Part1.CanCollide = false
  161. Part1.TopSurface = Enum.SurfaceType.Smooth
  162. Part1.FormFactor = Enum.FormFactor.Symmetric
  163. Part1.formFactor = Enum.FormFactor.Symmetric
  164. SpecialMesh2.Parent = Part1
  165. SpecialMesh2.Scale = Vector3.new(0.5, 1.20000005, 0.5)
  166. Part3.Name = "Sign"
  167. Part3.Parent = Tool0
  168. Part3.CFrame = CFrame.new(34.806324, 9.9443903, -134.142731, 0.662298739, -0.0162105355, -0.749064386, -6.58125927e-08, 0.999765873, -0.0216360372, 0.749239743, 0.0143295703, 0.662143707)
  169. Part3.Orientation = Vector3.new(1.24000001, -48.5200005, 0)
  170. Part3.Position = Vector3.new(34.806324, 9.9443903, -134.142731)
  171. Part3.Rotation = Vector3.new(1.87, -48.5099983, 1.39999998)
  172. Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
  173. Part3.Transparency = 1
  174. Part3.Size = Vector3.new(3, 3, 1)
  175. Part3.BottomSurface = Enum.SurfaceType.Smooth
  176. Part3.BrickColor = BrickColor.new("Bright yellow")
  177. Part3.TopSurface = Enum.SurfaceType.Smooth
  178. Part3.brickColor = BrickColor.new("Bright yellow")
  179. Part3.FormFactor = Enum.FormFactor.Symmetric
  180. Part3.formFactor = Enum.FormFactor.Symmetric
  181. Decal4.Parent = Part3
  182. Decal4.Texture = "http://www.roblox.com/asset/?id=116620938"
  183. Decal4.Face = Enum.NormalId.Back
  184. Decal5.Parent = Part3
  185. Decal5.Texture = "http://www.roblox.com/asset/?id=116620941"
  186. BlockMesh6.Parent = Part3
  187. BlockMesh6.Offset = Vector3.new(0, 0, -0.74000001)
  188. BlockMesh6.Scale = Vector3.new(1.5, 1.5, 0)
  189. CFrameValue7.Name = "qRelativeCFrameWeldValue"
  190. CFrameValue7.Parent = Part3
  191. CFrameValue7.Value = CFrame.new(-1.90734863e-06, -2.5, -0.99987793, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  192. Weld8.Name = "qCFrameWeldThingy"
  193. Weld8.Parent = Part3
  194. Weld8.C1 = CFrame.new(-1.90734863e-06, -2.5, -0.99987793, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  195. Weld8.Part0 = Part1
  196. Weld8.Part1 = Part3
  197. Weld8.part1 = Part3
  198. stop = Tool0
  199. smacking = false
  200. towering = false
  201. stop.Activated:Connect(function()
  202. coroutine.resume(coroutine.create(function()
  203. wait(0.1)
  204. smacking = true
  205. wait(0.3)
  206. smacking = false
  207. towering = false
  208. end))
  209. local Anim = Instance.new("StringValue",stop)
  210. Anim.Name = "toolanim"
  211. Anim.Value = "Slash"
  212. stop.Parent.Humanoid:LoadAnimation(Anim)
  213. end)
  214. function lerp(weld,startpos,endpos,amntime,longatend)
  215. local waited = 0
  216. for i=1,amntime*100 do
  217. if longatend == true then
  218. startpos = weld.C0
  219. end
  220. weld.C0 = startpos:lerp(endpos,i/(amntime*100))
  221. wait(0.01)
  222. waited=waited+0.01
  223. end
  224. end
  225. function weldxd(thing2,thing1)
  226. w = Instance.new("Weld")
  227. w.Part0 = thing2
  228. w.Part1 = thing1
  229. w.C0 = thing2.CFrame:inverse()
  230. w.C1 = thing1.CFrame:inverse()
  231. w.Parent = thing1
  232. end
  233. stop.Sign.Touched:Connect(function(part)
  234. if part.Anchored == false and smacking == true and towering == false then
  235. towering = true
  236. Part0 = Instance.new("Part")
  237. Part0.Anchored = true
  238. local hahahhhh = part
  239. Part1 = Instance.new("Part")
  240. BlockMesh2 = Instance.new("BlockMesh")
  241. Weld3 = Instance.new("Weld")
  242. Part4 = Instance.new("Part")
  243. BlockMesh5 = Instance.new("BlockMesh")
  244. Weld6 = Instance.new("Weld")
  245. Part0.Name = "towerb"
  246. Part0.Parent = workspace
  247. Part0.CFrame = CFrame.new(81.5, 40, -238, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  248. Part0.Position = Vector3.new(81.5, 40, -238)
  249. Part0.Size = Vector3.new(20, 80, 20)
  250. Part0.BottomSurface = Enum.SurfaceType.Smooth
  251. Part0.TopSurface = Enum.SurfaceType.Smooth
  252. Part1.Parent = Part0
  253. Part1.CFrame = CFrame.new(81.5, 40, -238, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  254. Part1.Position = Vector3.new(81.5, 40, -238)
  255. Part1.Size = Vector3.new(20, 80, 20)
  256. Part1.BottomSurface = Enum.SurfaceType.Smooth
  257. Part1.TopSurface = Enum.SurfaceType.Smooth
  258. BlockMesh2.Parent = Part1
  259. BlockMesh2.Offset = Vector3.new(0, 40, 0)
  260. BlockMesh2.Scale = Vector3.new(0.100000001, 0.5, 0.100000001)
  261. Weld3.Parent = Part0
  262. Weld3.Part0 = Part0
  263. Weld3.Part1 = Part1
  264. Weld3.part1 = Part1
  265. Part4.Name = "2"
  266. Part4.Parent = Part0
  267. Part4.CFrame = CFrame.new(81.5, 40, -238, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  268. Part4.Position = Vector3.new(81.5, 40, -238)
  269. Part4.Size = Vector3.new(20, 80, 20)
  270. Part4.BottomSurface = Enum.SurfaceType.Smooth
  271. Part4.TopSurface = Enum.SurfaceType.Smooth
  272. Part4.CanCollide = false
  273. Part0.CanCollide = false
  274. Part1.CanCollide = false
  275. BlockMesh5.Parent = Part4
  276. BlockMesh5.Offset = Vector3.new(37, 0, 8)
  277. Weld6.Parent = Part0
  278. Weld6.Part0 = Part0
  279. --w = Instance.new("Weld")
  280. --w.Part0 = Part0
  281. --w.Part1 = part
  282. --w.C0 = Part0.CFrame:inverse()
  283. --w.C1 = part.CFrame:inverse()
  284. Weld6.Part1 = Part4
  285. Weld6.part1 = Part4
  286. coroutine.resume(coroutine.create(function()
  287. Part0.Touched:Connect(function(hit)
  288. if hit == part then
  289. EXP1 = Instance.new('Sound')
  290. EXP1.Parent = Part0
  291. EXP1.Name = "9/11"
  292. EXP1.Playing = true
  293. EXP1.SoundId = "rbxassetid://165969964"
  294. EXP1.Volume = 10
  295. EXP1.TimePosition = 0
  296. EXP1:Play()
  297. if part.Parent:FindFirstChildOfClass("Humanoid") then
  298.  
  299. part.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  300. end
  301. end
  302. if part.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  303.  
  304. part.Parent.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  305. end
  306. end)
  307. end))
  308. --w.Parent = part
  309. coroutine.resume(coroutine.create(function()
  310. while wait() do
  311. --part.Anchored = true
  312. --part.CFrame = CFrame.new(part.Position, Part0)
  313. --part.CFrame = part.CFrame * CFrame.new(0,0,-50)
  314. end
  315. end))
  316. Part0.CFrame = Tool0.Parent.HumanoidRootPart.CFrame * CFrame.new(0,40 + 2,-500)
  317. byeeee = Instance.new("BodyPosition",part)
  318. --byeeee.MaxForce = Vector3.new(500000000, 500000000, 500000000)
  319. byeeee.Position = Part0.Position -- have fun at mars
  320. if part.Parent.ClassName == 'Model' and part.Parent:FindFirstChild("Head") then
  321. for i,v in pairs(part.Parent:GetChildren()) do
  322. if v ~= part then
  323. byeeeee = Instance.new("BodyPosition",v)
  324. --byeeeee.MaxForce = Vector3.new(500000000, 500000000, 500000000)
  325. byeeeee.Position = Part0.Position -- have fun at mars
  326. end
  327. end
  328. AAAAAA = Instance.new("Sound",part.Parent.Head)
  329. AAAAAA.Volume = 1
  330. AAAAAA.SoundId = 'rbxassetid://271550300'
  331. AAAAAA.Looped = true
  332. AAAAAA:Play()
  333. AAAAAA.TimePosition = 1.5
  334. end
  335. end
  336. end)
  337. else
  338. game:GetService("Chat"):Chat(owner.Character.Head, "not whitelisted noob", Enum.ChatColor.White)
  339. end
Add Comment
Please, Sign In to add comment